Files
node-minecraft-data/tsconfig.json
Konstantin 3ba30744ae chore: expose types in declaration file for consumer
Refactored generation and types template a bit to allow consumer not only import main function but also types used with it

Before, if one wanted to get IndexedData type they had to do following:

import getMcData = require('minecraft-data')

type IndexedData = ReturnType<typeof getMcData>

Now one can import IndexedData like so:

import { IndexedData } from 'minecraft-data'
2020-06-27 14:15:59 +02:00

18 lines
341 B
JSON

{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictFunctionTypes": true,
"forceConsistentCasingInFileNames": true,
"types": ["node"]
},
"files": [
"index.d.ts",
"typings/test-typings.ts"
]
}