@thi.ng/expose
Version:
Conditional global variable exposition
11 lines • 401 B
TypeScript
/**
* Exposes given `value` as `id` in global scope, iff `always = true` (default:
* false) or if `process.env.NODE_ENV != "production"` or if the
* `UMBRELLA_GLOBALS` or `VITE_UMBRELLA_GLOBALS` env var is set to 1.
*
* @param id -
* @param value -
* @param always -
*/
export declare const exposeGlobal: (id: string, value: any, always?: boolean) => void;
//# sourceMappingURL=index.d.ts.map