swaf/src/frontend/Globals.ts

12 lines
272 B
TypeScript
Raw Normal View History

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;
}
}