Add types to InteractiveAuthEntryComponents

This commit is contained in:
J. Ryan Stinnett
2021-05-20 17:59:45 +01:00
parent 6574ca98fa
commit df09bdf823
3 changed files with 213 additions and 180 deletions
+9 -5
View File
@@ -36,14 +36,18 @@ export class Service {
}
}
interface Policy {
export interface LocalisedPolicy {
name: string;
url: string;
}
export interface Policy {
// @ts-ignore: No great way to express indexed types together with other keys
version: string;
[lang: string]: {
url: string;
};
[lang: string]: LocalisedPolicy;
}
type Policies = {
export type Policies = {
[policy: string]: Policy,
};