I am getting the error TS2339: Property 'endsWith' does not exist on type [insert a string variable here] when I build a TypeScript file using the below example:
console.log( "myString".endsWith("g") );
The TypeScript autocomplete also does not list ES6 methods (such as the above endsWith).
This error does not happen in VS Code (and the autocomplete also works correctly with ES6 methods in VS Code).
I am getting the error TS2339: Property 'endsWith' does not exist on type [insert a string variable here] when I build a TypeScript file using the below example:
console.log( "myString".endsWith("g") );
The TypeScript autocomplete also does not list ES6 methods (such as the above endsWith).
This error does not happen in VS Code (and the autocomplete also works correctly with ES6 methods in VS Code).