just so much groundwork

This commit is contained in:
2025-02-05 04:00:40 -07:00
parent b3772052f5
commit 952b5dd57f
22 changed files with 1003 additions and 2081 deletions

View File

@@ -27,8 +27,11 @@ export const ctx = new Proxy(
throw new Error(`Context variable '${prop}' is not defined.`);
},
},
) as Record<string, any>;
) as Record<string, unknown>;
export function getContext() {
return ctx;
}
export function getContextItem<T>(prop: string): T {
return ctx[prop] as T;
}