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.
This pull request fixed that by using import * as ... from ... for modules without default import.
In some modules without import, for example
util
,import util from 'util'
is allowed but the imported module hasany
type. This may lead to situations like this:util.inspect.custom
hasany
type, thusNBTCustomObject
matches any type withtoString(): string
. This pull request fixed that by usingimport * as ... from ...
for modules without default import.