fix: define globals for context

This commit is contained in:
Aarnav Tale
2025-03-11 21:58:25 -04:00
parent 296e4d489c
commit e36352b7f3
3 changed files with 24 additions and 7 deletions
+21
View File
@@ -0,0 +1,21 @@
import { HeadplaneConfig } from './parser';
declare global {
const __cookie_context: {
cookie_secret: string;
cookie_secure: boolean;
};
const __hs_context: {
url: string;
config_path?: string;
config_strict?: boolean;
};
const __oidc_context: {
valid: boolean;
secret: string;
};
let __integration_context: HeadplaneConfig['integration'];
}