chore(8.0): final pre-RC1 sweep — API consistency, named errors, orphans, zero-cast codebase
This commit is contained in:
parent
970e08c466
commit
1f7e365a4e
237 changed files with 1951 additions and 49413 deletions
|
|
@ -18,8 +18,18 @@ export const environment = {
|
|||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
/**
|
||||
* Runtime-environment marker published by the unified entry point so
|
||||
* embedders and diagnostics can detect the active Brainy environment.
|
||||
* Ambient `var` is required — `let`/`const` in `declare global` do not
|
||||
* attach to `globalThis`.
|
||||
*/
|
||||
var __ENV__: typeof environment | undefined
|
||||
}
|
||||
|
||||
if (typeof globalThis !== 'undefined') {
|
||||
;(globalThis as any).__ENV__ = environment
|
||||
globalThis.__ENV__ = environment
|
||||
}
|
||||
|
||||
console.log(
|
||||
|
|
|
|||
Reference in a new issue