mirror of
https://github.com/minescope/mineping.git
synced 2025-07-17 07:26:05 +03:00
feat: add typescript declaration files
Types are automatically generated from the existsing JSDoc comments in the js source code. Use `types:build` script from `package.json` to produce d.ts files.
This commit is contained in:
@ -1,14 +1,10 @@
|
||||
{
|
||||
"include": ["lib/**/*.js", "index.js"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"noEmit": true,
|
||||
"strict": true,
|
||||
"moduleResolution": "node",
|
||||
"target": "ES2022",
|
||||
"lib": ["ES2022"],
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"include": ["lib", "index.js"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "types",
|
||||
"removeComments": false
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user