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

[TS] Add support for fixed length arrays on Typescript (#5864) (#7021) #7581

Merged

Conversation

bulentv
Copy link
Contributor

@bulentv bulentv commented Oct 12, 2022

Adds full support for fixed length arrays to TS gen. Includes a test as well.

@google-cla
Copy link

google-cla bot commented Oct 12, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added the nim label Oct 21, 2022
@bulentv bulentv marked this pull request as draft October 21, 2022 20:39
@bulentv bulentv force-pushed the ts-support-for-fixed-length-arrays branch from 37f3058 to 4f93049 Compare October 21, 2022 20:48
@github-actions github-actions bot removed java rust nim lua CI Continuous Integration labels Oct 21, 2022
@bulentv bulentv marked this pull request as ready for review October 21, 2022 20:50
@bulentv bulentv force-pushed the ts-support-for-fixed-length-arrays branch 4 times, most recently from 646525f to c4d3d0d Compare October 27, 2022 21:08
…oogle#7021)

    * Typescript / Javascript don't have fixed arrays but it is important to support these languages for compatibility.

    * Generated TS code checks the length of the given array and do truncating / padding to conform to the schema.

    * Supports the both standard API and Object Based API.

    * Added a test.

    Co-authored-by: Mehmet Baker <mehmet.baker@zerodensity.tv>
    Signed-off-by: Bulent Vural <bulent.vural@zerodensity.tv>

Signed-off-by: Bülent Vural <bulent.vural@zerodensity.tv>
@bulentv bulentv force-pushed the ts-support-for-fixed-length-arrays branch from c4d3d0d to cda288f Compare October 27, 2022 23:16
.gitignore Outdated Show resolved Hide resolved
src/idl_gen_ts.cpp Outdated Show resolved Hide resolved
src/idl_gen_ts.cpp Outdated Show resolved Hide resolved
src/idl_gen_ts.cpp Show resolved Hide resolved
src/idl_gen_ts.cpp Outdated Show resolved Hide resolved
@dbaileychess
Copy link
Collaborator

@bjornharrtell Could you take a look

@bjornharrtell
Copy link
Collaborator

@dbaileychess I think this generally looks good and is a welcome addition.

bjornharrtell
bjornharrtell previously approved these changes Oct 28, 2022
Signed-off-by: Bülent Vural <bulent.vural@zerodensity.tv>
@bulentv
Copy link
Contributor Author

bulentv commented Oct 28, 2022

Added c716af8 to resolve review conversations. I left one open with a question to clarify.

Signed-off-by: Bülent Vural <bulent.vural@zerodensity.tv>
Signed-off-by: Bülent Vural <bulent.vural@zerodensity.tv>
@dbaileychess dbaileychess merged commit c2d9c20 into google:master Oct 29, 2022
@bulentv bulentv deleted the ts-support-for-fixed-length-arrays branch January 4, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants