Error In Declare Multiple Dimensional Array In Typescript
In my app, I need to define an element like: commandsList:[RegExp, string, string]; but when I tried to push the array elements into it, as below: public registerCommand(command:R
Solution 1:
Correct me if I'm wrong, but it looks like you're trying to push an object, where the array expects a RegExp | string
type.
Post a Comment for "Error In Declare Multiple Dimensional Array In Typescript"