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
when generating proto code that has type of
map<uint64, someotherType> telescope generates uncompilable typescript. map key types can only be a Number type.
map<uint64, someotherType>
Number
example here:
https://github.com/technicallyty/telescope-test/blob/4a69452e6587c1a0de70069dd774a227cf4adfde/src/codegen/cosmos/auth/v1beta1/auth.ts#L124
that line produces an error:
this is the message it generated from:
message Foo { map<uint64, string> bar = 1; }
docs here say we can use long or bigint for 64 bit integer types, however neither type is valid when used in a map as key.
The text was updated successfully, but these errors were encountered:
if both bigint or long's not valid key type, then we need to fix this using string as the key type and do the converting in this case:
Sorry, something went wrong.
any update here?
No branches or pull requests
when generating proto code that has type of
map<uint64, someotherType>
telescope generates uncompilable typescript. map key types can only be aNumber
type.example here:
https://github.com/technicallyty/telescope-test/blob/4a69452e6587c1a0de70069dd774a227cf4adfde/src/codegen/cosmos/auth/v1beta1/auth.ts#L124
that line produces an error:
this is the message it generated from:
docs here say we can use long or bigint for 64 bit integer types, however neither type is valid when used in a map as key.
The text was updated successfully, but these errors were encountered: