Files
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
..