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

feat: make input arrays readonly #236

Closed
wants to merge 1 commit into from
Closed

feat: make input arrays readonly #236

wants to merge 1 commit into from

Conversation

jeengbe
Copy link

@jeengbe jeengbe commented Oct 22, 2023

Arrays should be readonly when used as parameters to allow readonly arrays to be passed.

There is another wrapArray-call here: https://github.com/jeengbe/protoc-gen-ts/blob/a5c306a0d1d864ce5bc1887dfef078d76c0efcc0/src/descriptor.ts#L553-L558, which I was not sure about how it's used.

Fixes #211

@jeengbe jeengbe closed this Oct 22, 2023
@jeengbe
Copy link
Author

jeengbe commented Oct 22, 2023

I see a bit too late now that this only works locally because of a patched @types/google-protobuf. Waiting for DefinitelyTyped/DefinitelyTyped#67154.

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.

Array parameters should be readonly
1 participant