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
Currently, optional types only allow undefined. Is it possible to register an optional type that allows null as well as undefined?
undefined
null
The text was updated successfully, but these errors were encountered:
Can you elaborate a little more? Is this perhaps an issue with embind? Maybe the typescript bindings produced by emcc?
Sorry, something went wrong.
Bindings for std::optional only allow undefined to be passed from JS (passing null as an optional argument throws an error)
std::optional
brendandahl
No branches or pull requests
Currently, optional types only allow
undefined
. Is it possible to register an optional type that allowsnull
as well asundefined
?The text was updated successfully, but these errors were encountered: