This commit is contained in:
2026-05-07 02:15:20 +08:00
parent da0a6d0f81
commit ccc46844b6
141 changed files with 2358 additions and 1661 deletions

View File

@@ -1,67 +1,12 @@
{
// 此文件仅用于类型检查,不用于类型检查,构建时会指定使用 tsconfig.build.json
"extends": "./tsconfig.base.json",
"compilerOptions": {
// Browser api需要加 "DOM""DOM.Iterable"
// Node api需要加 "ES2025",始终使用带版本号的最新版本
// NextJs api属于同构server 端会预处理 DOM计算url三个都需要 "ES2025", "DOM", "DOM.Iterable"
"lib": ["ES2025", "DOM", "DOM.Iterable"],
/**
* 使
* - nodeNode.js API
* - reactJSX / React
* - vite/clientimport.meta / env
*/
"types": ["node", "react", "react-dom"],
/**
* React JSX
* - 使 React 17+ JSX Transform
* - import React
*/
"jsx": "react-jsx",
/**
*
* - tsc / tsc -b
*/
"outDir": "./dist",
/**
*
* - dist src
* - declaration
*/
"rootDir": "./src",
/**
* .d.ts
* - / npm
* -
*/
"declaration": true,
/**
*
* - esbuild / SWC / bundler
* - enum / namespace
*/
"isolatedModules": true
"jsx": "react-jsx",
"declaration": true
},
/**
*
* - src
* - exclude
*/
"include": ["src"],
/**
*
* -
* - dist / test / config
* -
*/
"exclude": [
"node_modules",
"dist",