mirror of
https://github.com/barkeser2002/node-minecraft-data.git
synced 2026-09-25 07:49:50 +03:00
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'
18 lines
341 B
JSON
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"
|
|
]
|
|
} |