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 TypeScript types #9

Merged
merged 2 commits into from
May 5, 2021
Merged

Fix TypeScript types #9

merged 2 commits into from
May 5, 2021

Conversation

mkusaka
Copy link
Contributor

@mkusaka mkusaka commented May 4, 2021

readonly Array<T> syntax raises 'readonly' type modifier is only permitted on array and tuple literal types.(1354) error, so we should use RadonlyArray<T> or readonly T[] instead.

We can see demo at playground about this error.

@Richienb Richienb changed the title Fix type error in type definition file. Fix TypeScript types May 5, 2021
@Richienb Richienb merged commit cea40ee into Richienb:master May 5, 2021
@mkusaka mkusaka deleted the patch branch May 5, 2021 11: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.

2 participants