-
Notifications
You must be signed in to change notification settings - Fork 291
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
Cannot use CredentialsEncodingMode in typescript #429
Comments
Hey @TimFroidcoeur. We don't provide type definitions for this library, that means you are probably getting them from DefinitelyTyped. I'd open an issue/PR there instead. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to use CredentialsEncodingMode.LOOSE, as follows:
and I get a runtime error
I'm not an expert in how typescript works, but according to https://ncjamieson.com/dont-export-const-enums/ this is an inherent limitation of exporting a const enum.
I am using the following as a workaround:
maybe the exported enums should be non-const?
The text was updated successfully, but these errors were encountered: