#Why does the library export an object twice?

10 messages · Page 1 of 1 (latest)

oblique minnow
#

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

exotic pilotBOT
#

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

heady crypt
#

Yea this isn't discord.js related at all. You're looking at the emitted JavaScript

#

Just how TypeScript works

oblique minnow
#

ooh so it's compiled from typescript

#

okay thanks

#

i thought it was written in native JS

heady crypt
oblique minnow
heady crypt
#

I'm not really sure myself but it looks like circular import shenanigans or whatever