feat: Add TypeScript support (#9550)

This commit is contained in:
Daniel
2025-01-30 11:45:35 +11:00
committed by GitHub
parent a97d41864e
commit 59e46d0aea
11 changed files with 2925 additions and 153 deletions

18
types/tsconfig.json Normal file
View File

@@ -0,0 +1,18 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
// If the library is an external module (uses `export`), this allows your test file to import "mylib" instead of "./index".
// If the library is global (cannot be imported via `import` or `require`), leave this out.
"baseUrl": ".",
"paths": { "parse": ["."] }
}
}