일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- Props
- API
- REACT
- SSR
- Redux
- middleware
- express.js
- HTML
- blockchain
- useState
- Ethereum
- hardhat
- 기준
- tailwindcss
- node.js
- web
- bitcoin
- 삶
- JavaScript
- evm
- built in object
- Interface
- CLASS
- graphQL
- CSS
- nextJS
- typeScript
- solidity
- error
- concept
- Today
- Total
목록Type Inference (2)
ReasonJun
If typescript cannot infer the type and need to do type annotation 1. In case of unilaterally returning any type const json = '{"x": 1, "y": 2}'; const coordinates = JSON.parse(json); console.log(coordinates); 2. If you declare a variable first and initialize it later => In this case, it is inferred as any. let greeting greeting = 'hello' // let greeting: any 3. When the value to be assigned to ..
TypeScript is an open-source programming language developed by Microsoft. It is a superset of JavaScript, which means that any valid JavaScript code is also valid TypeScript code. TypeScript introduces optional static typing and provides additional features and capabilities that enhance the development experience and help catch errors at compile-time. Here are some key features and concepts of T..