#typescript
Read more stories on Hashnode
Articles with this tag
Let me introduce this by dividing 'Array' and 'Normal Object'. Array Function Parameter type OneToThree = (1 | 2 | 3)[]; type OneToFive = (1 | 2 | 3 |...
You have to use assertion such as [as "absolute"] after the property value. Below is the...
In the below example, I did it in two ways. The first one is using EventHandler type and the second one is using Event...
Below is the example. const $button = document.querySelector('button'); // optional chaining // The button should...