mirror of
https://github.com/barkeser2002/node-minecraft-data.git
synced 2026-09-25 09:26:20 +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'