sandstone-mc / sandstone

Sandstone | Next Generation Framework for Minecraft
https://sandstone.dev/
MIT License
173 stars 16 forks source link

Fix default imports in modules without default import #91

Closed ncfumction closed 3 years ago

ncfumction commented 3 years ago

In some modules without import, for example util, import util from 'util' is allowed but the imported module has any type. This may lead to situations like this: util.inspect.custom has any type, thus NBTCustomObject matches any type with toString(): string. image This pull request fixed that by using import * as ... from ... for modules without default import.