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
Use values from enums in code.
const Realm = require("realm"); assert(typeof Realm.ConnectionState === "object"); assert(typeof Realm.ConnectionState.Disconnected === "string");
The enums (except UpdateMode) declared by the types are all undefined:
UpdateMode
Realm.SessionStopPolicy
Realm.OpenRealmBehaviorType
Realm.OpenRealmTimeOutBehavior
Realm.ConnectionState
Realm.NumericLogLevel
const Realm = require("realm")
Realm.ConnectionState.Disconnected
Uncaught TypeError: Cannot read property 'Disconnected' of undefined
The text was updated successfully, but these errors were encountered:
realm.syncSession?.connectionState === Realm.ConnectionState[enumValue]
➤ JacobOscarGunnarsson commented:
Fixed on the bindgen branch
Sorry, something went wrong.
JacobOscarGunnarsson
Successfully merging a pull request may close this issue.
Goals
Use values from enums in code.
Expected Results
Actual Results
The enums (except
UpdateMode
) declared by the types are all undefined:Realm.SessionStopPolicy
Realm.OpenRealmBehaviorType
Realm.OpenRealmTimeOutBehavior
Realm.ConnectionState
Realm.NumericLogLevel
Steps to Reproduce & Code Sample
const Realm = require("realm")
Realm.ConnectionState.Disconnected
Uncaught TypeError: Cannot read property 'Disconnected' of undefined
Version of Realm and Tooling
The text was updated successfully, but these errors were encountered: