-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad Typescript usage #62
Comments
Create a patch and make a pull request, I think that would be a big help for the developer :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a rather annoying error in the types. and is that although they are declared these are not exported so every time they try to use in a modular system or to declare that a value has a specific typescript type throws an error that "X type is used but not accessible"
The exported variable 'DomainNameServer' has or uses the name 'DnsServer' of the module 'C:/Servers/npanel/node_modules/@types/dns2/index' external, but cannot be named.ts(4023)
SOLUTION: use a
export
beforedeclare
ALSO: readme on DNS Server are outdated:
https://github.com/song940/node-dns/blob/b2e994c0a61ad58902486ed4e9055965cf0bcb5d/README.md?plain=1#L160-L163
The text was updated successfully, but these errors were encountered: