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

fix(types): allow for readonly arrays #70

Merged
merged 1 commit into from Dec 19, 2021
Merged

Conversation

nicojs
Copy link
Contributor

@nicojs nicojs commented Apr 20, 2021

Allow for readonly arrays in the type definitions.

Fixes #69

Note: this is a draft to illustrate what I mean.

Allow for `readonly` arrays in the type definitions.
@kaelzhang
Copy link
Owner

This pull request is still a work in progress

And there is also a test case for ts cases, so plz also update the cases here

@mausworks
Copy link

This is relevant for one of my projects as well.

I can submit a patch for this as well with a test case if @nicojs doesn't have time.

@kaelzhang kaelzhang marked this pull request as ready for review December 19, 2021 03:08
@kaelzhang kaelzhang merged commit 7785ba8 into kaelzhang:master Dec 19, 2021
kaelzhang added a commit that referenced this pull request Dec 19, 2021
@mausworks
Copy link

Cool, I actually was just on my way to submit a patch for this. I'll submit one for just the test-cases then.

@mausworks
Copy link

Damn, you work fast. OK—thanks for the update!

@kaelzhang
Copy link
Owner

kaelzhang commented Dec 19, 2021

Damn, you work fast. OK—thanks for the update!

I happen to be free right now 😄

Landed in 5.2.0

@mausworks
Copy link

Prefect, just what I needed. 👍

@nicojs nicojs deleted the patch-1 branch December 19, 2021 06:20
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.

TypeScript: add support for readonly string[]
3 participants