Skip to content
Snippets Groups Projects
Commit 56d04117 authored by Emmanuel Raviart's avatar Emmanuel Raviart Committed by OpenFisca JSON Model CI
Browse files

Add missing app.d.ts file.

parent 9a6ecc66
No related branches found
No related tags found
1 merge request!77Ajout de la comparaison de cas types
/// <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[]
matomo?: {
prependDomain?: boolean
siteId: number
subdomains?: string
url: string
}
openfiscaRepository: SessionOpenFiscaRepository
portalUrl: string
reformName?: string
showTutorial?: boolean
title: string
user?: User
}
interface SessionOpenFiscaRepository {
branch: string
group: string
project: string
rawUrlTemplate: string
urlTemplate: string
}
// 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"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment