@lls/typings 24.21.0-ec05feae → 24.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/overrides/global.d.ts +2 -12
- package/package.json +1 -1
package/overrides/global.d.ts
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import type { AsyncLocalStorage } from 'node:async_hooks'
|
|
2
1
|
import type { Polypad as PolypadType } from '@typings/polypad'
|
|
3
2
|
import type { AnyFunction, TODO } from '@typings/utils'
|
|
4
3
|
import type CheerioModule from 'cheerio'
|
|
5
4
|
|
|
6
|
-
type LlsNamespace = 'UNIVERSAL_VARS'
|
|
7
|
-
export type UniversalVars = {
|
|
8
|
-
NO_CACHE?: boolean
|
|
9
|
-
SSR_INIT_LOCATION?: string
|
|
10
|
-
FLAGS?: Record<string, TODO>
|
|
11
|
-
}
|
|
12
|
-
type Store = Map<LlsNamespace, (UniversalVars & Record<string, any>) | undefined>
|
|
13
|
-
|
|
14
5
|
declare global {
|
|
15
6
|
// https://stackoverflow.com/questions/35074713/extending-typescript-global-object-in-node-js
|
|
16
7
|
var cheerio: typeof CheerioModule
|
|
@@ -28,14 +19,13 @@ declare global {
|
|
|
28
19
|
}
|
|
29
20
|
var WEBFLOW_NAVBAR: string | undefined
|
|
30
21
|
|
|
31
|
-
var UNIVERSAL_VARS:
|
|
32
|
-
var llsStorageReady: AsyncLocalStorage<Store>
|
|
33
|
-
var llsStoragePromise: Promise<AsyncLocalStorage<Store>>
|
|
22
|
+
var UNIVERSAL_VARS: Record<string, unknown> | undefined
|
|
34
23
|
|
|
35
24
|
namespace NodeJS {
|
|
36
25
|
interface ProcessEnv {
|
|
37
26
|
NODE_ENV: 'local' | 'development' | 'production'
|
|
38
27
|
CONF_ENV: 'local' | 'development' | 'test' | 'preprod' | 'production' | 'prod'
|
|
28
|
+
SSR_INIT_LOCATION?: string
|
|
39
29
|
}
|
|
40
30
|
}
|
|
41
31
|
var bun: {
|