chore: standardize tsconfig (#9568)

This commit is contained in:
forehalo
2025-01-08 04:07:56 +00:00
parent 39f4b17315
commit c0ed74dfed
151 changed files with 1041 additions and 1566 deletions

32
tools/@types/build-config/__all.d.ts vendored Normal file
View 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;

View File

@@ -0,0 +1,7 @@
{
"name": "@types/build-config",
"private": true,
"types": "./__all.d.ts",
"type": "module",
"version": "0.19.0"
}