Alice Gaudon
a3ebf46b54
This renames ApplicationComponent (previous) init to initRoutes and handle to handleRoutes
12 lines
272 B
TypeScript
12 lines
272 B
TypeScript
export default class Globals {
|
|
private readonly globals: Record<string, unknown> = {};
|
|
|
|
public get(): Record<string, unknown> {
|
|
return {...this.globals};
|
|
}
|
|
|
|
public set(key: string, value: unknown): void {
|
|
this.globals[key] = value;
|
|
}
|
|
}
|