Skip to content

Commit

Permalink
🐛 importar tipos d Egresados desde tipos.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
1cgonza committed Mar 20, 2024
1 parent bf8c116 commit 570cce5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
3 changes: 1 addition & 2 deletions procesador/lugares.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { getXlsxStream } from 'xlstream';
import slugificar from 'slug';
import type { Listas, Lugar, TiposLugares } from '../src/tipos.js';
import type { Listas, ListasEgresados, Lugar, TiposLugares } from '../src/tipos.js';
import { guardarJSON } from './ayudas.js';
import type { Feature, FeatureCollection, Point } from 'geojson';
import type { ListasEgresados } from './egresados.js';

function procesarDatosMapa(lugares: Lugar[]) {
const geojson: FeatureCollection = { type: 'FeatureCollection', features: [] };
Expand Down
3 changes: 2 additions & 1 deletion procesador/procesador.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import type {
Año,
Campos,
DefinicionSimple,
Egresado,
ElementoLista,
LLavesMultiples,
Listas,
ListasEgresados,
OpcionBuscadorDatos,
PersonaID,
Proyecto
Expand All @@ -17,7 +19,6 @@ import procesarEgresados from './egresados.js';
import { existsSync, readdirSync } from 'fs';
import { resolve } from 'path';
import { imageSize } from 'image-size';
import type { Egresado, ListasEgresados } from './egresados.js';
import procesarPersonas from './personas.js';

const datosEmpiezanEnFila = 2;
Expand Down
11 changes: 9 additions & 2 deletions src/componentes/Ficha/Ficha.astro
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,16 @@ const secciones = [
vista,
actualizarUrl
} from '@/utilidades/cerebro';
import type { ElementoFicha, ElementoProyecto, Ficha, LLavesMultiples, Listas, LlavesListasEgresados } from '@/tipos';
import type {
ElementoFicha,
ElementoProyecto,
Ficha,
LLavesMultiples,
Listas,
ListasEgresados,
LlavesListasEgresados
} from '@/tipos';
import { marked } from 'marked';
import type { ListasEgresados } from 'procesador/egresados';
import SeccionFicha from './SeccionFicha';

const ficha = document.getElementById('contenedorFicha') as HTMLDivElement;
Expand Down
3 changes: 1 addition & 2 deletions src/componentes/ListaEgresadosNodos.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
import type { ElementoListaEgresados } from '@/tipos';
import type { ListasEgresados } from 'procesador/egresados';
import type { ElementoListaEgresados, ListasEgresados } from '@/tipos';
import { nombresListasEgresados } from '@/utilidades/cerebro';
interface Props {
Expand Down

0 comments on commit 570cce5

Please sign in to comment.