Skip to content
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

Support the jstype field option #592

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Conversation

timostamm
Copy link
Member

This PR adds support for the jstype field option, which can be used to generate 64-bit integral fields as String instead of BigInt.

For example:

int64 my_field = 1 [jstype = JS_STRING];

Will generate a field typed as string:

/**
 * @generated from field: int64 field = 1 [jstype = JS_STRING];
 */
myField: string;

Closes #556.

@timostamm timostamm merged commit 31371a4 into main Oct 24, 2023
3 checks passed
@timostamm timostamm deleted the tstamm/support-jstype-string branch October 24, 2023 11:15
@timostamm timostamm mentioned this pull request Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support the jstype field option
2 participants