fix(types): preserve complete nested types during post-processing
Use the TypeScript parser instead of a regex that truncates nested generics and function types. Validate generated syntax and add a regression test. Include workspace aliases and PTY ambient declarations. The full type package build still reports six errors in third-party node-pty source; this commit does not claim to resolve that remaining issue.
This commit is contained in:
1 parent
9109b8cfe2
commit
4f1401da78
4 files changed
+77
-6
No files matched your search
@@ -12,6 +12,12 @@
|
||||
"napcat-core": [
|
||||
"../../packages/napcat-core/index.ts"
|
||||
],
|
||||
"napcat-core/*": [
|
||||
"../../packages/napcat-core/*"
|
||||
],
|
||||
"napcat-webui-backend/*": [
|
||||
"../../packages/napcat-webui-backend/*"
|
||||
],
|
||||
"napcat-onebot": [
|
||||
"../../packages/napcat-onebot/index.ts"
|
||||
],
|
||||
@@ -40,6 +46,8 @@
|
||||
},
|
||||
"include": [
|
||||
"./index.ts",
|
||||
"../napcat-pty/node-pty.d.ts",
|
||||
"../napcat-pty/native.d.ts",
|
||||
"../napcat-core/**/*.ts",
|
||||
"../napcat-onebot/**/*.ts",
|
||||
"../napcat-common/**/*.ts"
|
||||
@@ -48,4 +56,4 @@
|
||||
"node_modules",
|
||||
"dist"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user