Why does the library export an object twice?

Not sure if discord-api-types library is related to discord.js, but I am curious why they decided to export the PermissionFlagsBits twice. First time with "void 0" and only then with the object itself
4 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Stew
StewOP3y ago
ooh so it's compiled from typescript okay thanks i thought it was written in native JS
Stew
StewOP3y ago
i googled the wrong thing so it didnt answer my question: https://stackoverflow.com/questions/7452341/what-does-void-0-mean
Stack Overflow
What does void 0 mean?
Reading through the Backbone.js source code, I saw this: validObj[attr] = void 0; What is void 0? What is the purpose of using it here?
Stew
StewOP3y ago
okay thanks 👍
Want results from more Discord servers?
Add your server