Skip to content

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