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