From fc6c6f93f10016157738ae935fd4226d8d7dc025 Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Fri, 19 May 2023 14:45:26 +0200 Subject: [PATCH] Export type Echeancier --- src/lib/index.ts | 1 + src/lib/legal/dole.ts | 10 ++++++---- src/lib/legal/index.ts | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/lib/index.ts b/src/lib/index.ts index 376357d..f1e8088 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -101,6 +101,7 @@ export { allSens, allSensMutable, type DossierLegislatif, + type Echeancier, type EcheancierLigne, type Jo, type JoNature, diff --git a/src/lib/legal/dole.ts b/src/lib/legal/dole.ts index 9abcf56..24adf49 100644 --- a/src/lib/legal/dole.ts +++ b/src/lib/legal/dole.ts @@ -23,10 +23,7 @@ export interface DossierLegislatif { CONTENU_DOSSIER_3?: string CONTENU_DOSSIER_4?: string CONTENU_DOSSIER_5?: string - ECHEANCIER?: { - "@derniere_maj"?: string - LIGNE: EcheancierLigne[] - } + ECHEANCIER?: Echeancier EXPOSE_MOTIF?: string LIBELLE_TEXTE_1?: string LIBELLE_TEXTE_2?: string @@ -67,6 +64,11 @@ export interface DossierLegislatif { } } +export interface Echeancier { + "@derniere_maj"?: string + LIGNE: EcheancierLigne[] +} + export interface EcheancierLigne { ARTICLE?: string BASE_LEGALE?: string diff --git a/src/lib/legal/index.ts b/src/lib/legal/index.ts index 5814967..a003369 100644 --- a/src/lib/legal/index.ts +++ b/src/lib/legal/index.ts @@ -4,7 +4,7 @@ import type { DossierLegislatif } from "./dole" import type { Jo } from "./jorf" -export type { DossierLegislatif, EcheancierLigne } from "./dole" +export type { DossierLegislatif, Echeancier, EcheancierLigne } from "./dole" export { allJoNatures, allJoNaturesMutable,