-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "update global variable exports" (#67)
* Revert "update global variable exports (#65)" This reverts commit 93a918f. * chore: commit changeset
- Loading branch information
1 parent
dcf5b81
commit 7c0502e
Showing
3 changed files
with
29 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@krakenjs/typescript-config-grumbler": patch | ||
--- | ||
|
||
Revert global variable update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
/* eslint @typescript-eslint/no-unused-vars: "off" */ | ||
export const ENV = { | ||
LOCAL: "local", | ||
STAGE: "stage", | ||
SANDBOX: "sandbox", | ||
PRODUCTION: "production", | ||
TEST: "test", | ||
DEMO: "demo", | ||
} as const; | ||
LOCAL: "local" as "local", | ||
STAGE: "stage" as "stage", | ||
SANDBOX: "sandbox" as "sandbox", | ||
PRODUCTION: "production" as "production", | ||
TEST: "test" as "test", | ||
DEMO: "demo" as "demo", | ||
}; | ||
|
||
export interface Global { | ||
__TEST__: boolean; | ||
__WEB__: boolean; | ||
__MIN__: boolean; | ||
__DEBUG__: boolean; | ||
__ENV__: typeof ENV[keyof typeof ENV]; | ||
__TREE_SHAKE__: boolean; | ||
type $Values<O extends Record<string, unknown>> = O[keyof O]; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
__WINDOW__: any; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
__GLOBAL__: any; | ||
declare let __TEST__: boolean; | ||
declare let __WEB__: boolean; | ||
declare let __MIN__: boolean; | ||
declare let __DEBUG__: boolean; | ||
declare let __ENV__: $Values<typeof ENV>; | ||
declare let __TREE_SHAKE__: boolean; | ||
|
||
__LOCAL__: boolean; | ||
__STAGE__: boolean; | ||
__SANDBOX__: boolean; | ||
__PRODUCTION__: boolean; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
declare let __WINDOW__: any; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
declare let __GLOBAL__: any; | ||
|
||
__UID__: string; | ||
} | ||
declare let __LOCAL__: boolean; | ||
declare let __STAGE__: boolean; | ||
declare let __SANDBOX__: boolean; | ||
declare let __PRODUCTION__: boolean; | ||
|
||
declare let __UID__: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters