[TypeScript] Functions
Call Signatures type Add = (a: number, b: number) => number; const add: Add = (a, b) => a + b Overloading //overloading은 함수가 여러개의 call signatures를 가지고 있을 때 발생 type Add = { (a: number, b: number) : number (a: number, b: string) : number } const add: Add = (a, b) => a + b; //error const add: Add = (a, b) => { if(typeof b === "string") return a return a + b } // 아무 의미 없는 코드 // Nextjs에서 일어나는 overloa..
TypeScript
2022. 10. 12. 15:04
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 웹소캣
- stylesjsx
- nextrewrite
- reactjs
- mediaprint
- Router
- nextjscss
- Socket
- NextJS
- webhook이란
- websocekt
- nextredirect
- reduxtoolkit
- TypeScript
- serversiderendering
- reactquill
- typescriptfunction
- nextjsjsx
- firebasecollection
- firebasev9
- cssmodules
- nextjsseo
- nextjsrouter
- React
- 404pages
- 웹인쇄
- 파이어베이스버전9
- firebaseorderby
- typescriptclass
- typescriptinterface
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함
