We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The file micro-enum.js has no module.exports definition. Since this file is imported by index.js, the result is an empty object.
module.exports
Test script:
const Enum = require('simple-enum') var MyEnum = Enum('A', 'B', 'C')
When running that script: TypeError: Enum is not a function
TypeError: Enum is not a function
The REPL shows that Enum is an empty object.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The file micro-enum.js has no
module.exports
definition. Since this file is imported by index.js, the result is an empty object.Test script:
When running that script:
TypeError: Enum is not a function
The REPL shows that Enum is an empty object.
The text was updated successfully, but these errors were encountered: