How to fix ReferenceError: exports is not defined TypeScript

If you are getting the error for code that runs in the browser, try defining a global exports variable above the script tags that load your JS files.

How to get items from local storage with TypeScript, manipulate and resave

an example of a print basket: how to get the items and re-save them

Three ways to convert a string to number in TypeScript

Exactly like in JavaScript, you can use the parseInt or parseFloat functions, or simply use the unary + operator:

How to check if local storage item exists in TypeScript

This is a rather easy one. I was adding my filtering values in my local storage and had to check if a "library" key existed.

Tutorial: how to do an excel download of objects in Typescript

I was doing this project with a little excel download in typescript, and figured it would be great to share it.

How to fix error TS7053: Element implicitly has an 'any' type because expression of type 'can't be used to index type '{}'

I had the following problem in TypeScript: I had to add an object with an array and key inside another object:

How to solve error TS7031: Binding element 'id' implicitly has an 'any' type.

This error occurred in my Angular app fetching IDS from an observable. How to solve error TS7031: Binding element 'id' implicitly has an 'any' type.

Subscribe to TypeScript