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
@@ -19,6 +19,7 @@
|
||||
"devDependencies": {
|
||||
"napcat-core": "workspace:*",
|
||||
"napcat-onebot": "workspace:*",
|
||||
"tsc-alias": "^1.8.16"
|
||||
"tsc-alias": "^1.8.16",
|
||||
"typescript": "^5.3.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user