mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
Tweak typing for shared global
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
const DEFAULT_KEY = "DEFAULT";
|
||||
const SET_KEY = "__setter__";
|
||||
|
||||
type SharedGlobal = {
|
||||
[key: string]: unknown;
|
||||
[DEFAULT_KEY]: unknown;
|
||||
[SET_KEY]: string;
|
||||
};
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
sharedGlobals?: Record<
|
||||
string,
|
||||
{
|
||||
[key: string]: unknown;
|
||||
[SET_KEY]: string;
|
||||
}
|
||||
>;
|
||||
sharedGlobals?: Record<string, SharedGlobal>;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user