GUI-STUDIO commited on
Commit ·
4cb4a5b
1
Parent(s): 4be5275
big changes
Browse files- tsconfig.json +10 -8
tsconfig.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
| 11 |
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
| 12 |
|
| 13 |
/* Language and Environment */
|
| 14 |
-
"target": "ES2021"
|
| 15 |
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
| 16 |
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
| 17 |
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
|
|
@@ -25,14 +25,16 @@
|
|
| 25 |
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
| 26 |
|
| 27 |
/* Modules */
|
| 28 |
-
"module": "ES2022"
|
| 29 |
// "rootDir": "./", /* Specify the root folder within your source files. */
|
| 30 |
-
"moduleResolution": "
|
| 31 |
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
| 32 |
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
| 33 |
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
| 34 |
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
| 35 |
-
"types": [
|
|
|
|
|
|
|
| 36 |
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
| 37 |
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
| 38 |
// "resolveJsonModule": true, /* Enable importing .json files. */
|
|
@@ -71,12 +73,12 @@
|
|
| 71 |
/* Interop Constraints */
|
| 72 |
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
| 73 |
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
| 74 |
-
"esModuleInterop": true
|
| 75 |
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
| 76 |
-
"forceConsistentCasingInFileNames": true
|
| 77 |
|
| 78 |
/* Type Checking */
|
| 79 |
-
"strict": true
|
| 80 |
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
| 81 |
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
| 82 |
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
@@ -98,6 +100,6 @@
|
|
| 98 |
|
| 99 |
/* Completeness */
|
| 100 |
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
| 101 |
-
"skipLibCheck": true
|
| 102 |
}
|
| 103 |
}
|
|
|
|
| 11 |
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
| 12 |
|
| 13 |
/* Language and Environment */
|
| 14 |
+
"target": "ES2021" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
| 15 |
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
| 16 |
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
| 17 |
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
|
|
|
|
| 25 |
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
| 26 |
|
| 27 |
/* Modules */
|
| 28 |
+
"module": "ES2022" /* Specify what module code is generated. */,
|
| 29 |
// "rootDir": "./", /* Specify the root folder within your source files. */
|
| 30 |
+
"moduleResolution": "bundler" /* Specify how TypeScript looks up a file from a given module specifier. */,
|
| 31 |
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
| 32 |
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
| 33 |
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
| 34 |
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
| 35 |
+
"types": [
|
| 36 |
+
"bun-types"
|
| 37 |
+
] /* Specify type package names to be included without being referenced in a source file. */,
|
| 38 |
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
| 39 |
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
| 40 |
// "resolveJsonModule": true, /* Enable importing .json files. */
|
|
|
|
| 73 |
/* Interop Constraints */
|
| 74 |
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
| 75 |
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
| 76 |
+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
|
| 77 |
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
| 78 |
+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
| 79 |
|
| 80 |
/* Type Checking */
|
| 81 |
+
"strict": true /* Enable all strict type-checking options. */,
|
| 82 |
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
| 83 |
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
| 84 |
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
|
|
| 100 |
|
| 101 |
/* Completeness */
|
| 102 |
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
| 103 |
+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
| 104 |
}
|
| 105 |
}
|