chore: standardize tsconfig (#9568)
This commit is contained in:
32
tools/@types/build-config/__all.d.ts
vendored
Normal file
32
tools/@types/build-config/__all.d.ts
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
declare interface BUILD_CONFIG_TYPE {
|
||||
debug: boolean;
|
||||
distribution: 'web' | 'desktop' | 'admin' | 'mobile' | 'ios' | 'android';
|
||||
/**
|
||||
* 'web' | 'desktop' | 'admin'
|
||||
*/
|
||||
isDesktopEdition: boolean;
|
||||
/**
|
||||
* 'mobile'
|
||||
*/
|
||||
isMobileEdition: boolean;
|
||||
|
||||
isElectron: boolean;
|
||||
isWeb: boolean;
|
||||
isMobileWeb: boolean;
|
||||
isIOS: boolean;
|
||||
isAndroid: boolean;
|
||||
isAdmin: boolean;
|
||||
|
||||
appVersion: string;
|
||||
editorVersion: string;
|
||||
appBuildType: 'stable' | 'beta' | 'internal' | 'canary';
|
||||
|
||||
githubUrl: string;
|
||||
changelogUrl: string;
|
||||
downloadUrl: string;
|
||||
// see: tools/workers
|
||||
imageProxyUrl: string;
|
||||
linkPreviewUrl: string;
|
||||
}
|
||||
|
||||
declare var BUILD_CONFIG: BUILD_CONFIG_TYPE;
|
||||
7
tools/@types/build-config/package.json
Normal file
7
tools/@types/build-config/package.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "@types/build-config",
|
||||
"private": true,
|
||||
"types": "./__all.d.ts",
|
||||
"type": "module",
|
||||
"version": "0.19.0"
|
||||
}
|
||||
Reference in New Issue
Block a user