Skip to content
Snippets Groups Projects
Select Git revision
  • e6f8f2fa742433a6aebd2838ff1bddd018be2878
  • master default protected
  • warning-2-adultes-statut-marital-different
  • revalo_retraites
  • 365-ouvrir-l-onglet-employeur-ou-taxes-carburant-quand-c-est-le-cas-pour-un-dispositif
  • 381-pb-affichage-labels-des-parametres-sur-plus-de-3-lignes
  • ajoute-duplicate-aide-logement
  • poc_castype_ia
  • parametres-editables-budget
  • ui-parametres
  • 366-signe-a-cote-du-droit-en-vigueur-sur-l-ui-pour-indiquer-que-la-reforme-a-eu-lieu-mais-qu-elle-n
  • 355-les-dispositifs-prestations-sociales-du-graphique-se-cachent-montrent-en-meme-temps-2
  • 358-les-variables-dont-le-montant-est-nul-apparaissent-en-bleu-et-non-cliquables
  • 356-ajuster-la-largeur-sur-les-graphiques-budgetaires
  • incoherence_cas_type_0
  • fix-ui-suppression-tranches-baremes
  • ajout-agregat-cehr-version-plf
  • impact_carbone
  • xlsx
  • header_revamp
  • 270-concevoir-la-page-d-accueil-leximpact
  • 0.0.1151
  • 0.0.1150
  • 0.0.1149
  • 0.0.1148
  • 0.0.1147
  • 0.0.1146
  • 0.0.1145
  • 0.0.1144
  • 0.0.1143
  • 0.0.1142
  • 0.0.1141
  • 0.0.1140
  • 0.0.1139
  • 0.0.1138
  • 0.0.1137
  • 0.0.1136
  • 0.0.1135
  • 0.0.1134
  • 0.0.1133
  • 0.0.1132
41 results

app.d.ts

Blame
  • app.d.ts 1.28 KiB
    /// <reference types="@sveltejs/kit" />
    
    declare namespace App {
      interface Locals {
        user?: User
      }
    
      // interface Platform {}
    
      interface Session {
        advanced: boolean
        apiBaseUrls: string[]
        apiWebSocketBaseUrls: string[]
        baseUrl: string
        authenticationEnabled: boolean
        childrenKey: string
        familyEntityKey: string
        hasGithubPersonalAccessToken: boolean
        hiddenEntitiesKeyPlural?: string[]
        householdEntityKey: string
        legalUrl: string
        matomo?: {
          prependDomain?: boolean
          siteId: number
          subdomains?: string
          url: string
        }
        openfiscaRepository: import("$lib/repositories").RepositoryConfig
        portalUrl: string
        reformName?: string
        showTutorial?: boolean
        taxableHouseholdEntityKey: string
        territoiresUrl: string
        title: string
        user?: User
      }
    
      // interface Stuff {}
    
      export interface User {
        email: string // "john@doe.com"
        email_verified: boolean
        family_name: string // "Doe"
        given_name: string // "John"
        last_name: string // "Doe"
        locale: string // "fr"
        name: string // "John Doe"
        preferred_username: string // "jdoe",
        roles?: string[] // [ 'offline_access', 'default-roles-leximpact', 'uma_authorization' ],
        sub: string // "12345678-9abc-def0-1234-56789abcdef0"
      }
    }