tslab
tslab copied to clipboard
matchAll function is not found for a string.
'bar bar sheep'.matchAll(/(bar)/g)
The above will give error:
1:17 - Property 'matchAll' does not exist on type '"bar bar sheep"'.
In Node, it gives expected output:
> 'bar bar sheep'.matchAll(/(bar)/g)
Object [RegExp String Iterator] {}
I have the same issue with array properties.

Now "@types/node": "^18.16.2" is specified in package.json and matchAll works in my environment with the latest version. Let me know if it's not fixed with the latest release.