npx tsc xxx.ts --declaration --emitDeclarationOnly --lib es2022,dom

这样发现有些 global 不能识别

npx tsc --project gen-dts.json