본문 바로가기 메뉴 바로가기

BIBLIYA 개발 노트 LV_1

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

BIBLIYA 개발 노트 LV_1

검색하기 폼
  • 분류 전체보기 (24)
    • React Native (0)
    • React (2)
    • NextJS (12)
    • JavaScript (3)
    • TypeScript (5)
    • CSS (1)
    • Side Projects (1)
  • 방명록

typescriptfunction (1)
[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
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
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
more
«   2026/04   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바