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

ReadonlyArray should be transform into JS.ReadonlyArray #71

Open
MangelMaxime opened this issue Mar 30, 2024 · 0 comments
Open

ReadonlyArray should be transform into JS.ReadonlyArray #71

MangelMaxime opened this issue Mar 30, 2024 · 0 comments

Comments

@MangelMaxime
Copy link
Contributor

TypeScript documentation:

type A = ReadonlyArray<string>

translates into

type A = JS.ReadonlyArray<string>

In order to do that we need Fable.Core or Glutinum.ES5 to be have ReadonlyArray types defined in them.

For now, it is mapped to ResizeArray to make the code compile and kind of works. But this is an incorrect way of mapping it.

Example of npm package using this features:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant