Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- reactnative
- TS
- app.post
- 리액트네이티브아이콘
- extends
- Spring
- forwardref type
- react
- generic
- 안드로이드빌드에러
- 스크롤이벤트
- async
- Next.js
- 상속
- Filter
- npm에러
- 타입스크립트
- 배열중복요소제거
- materialicons
- reactnative error
- mainapplication.kt
- javascript
- interface
- set
- err_connection_refused
- 슬라이딩윈도우
- 이진탐색
- app:compiledebugkotlin
- array
- map
Archives
- Today
- Total
목록함수 alias (1)
rhanziy
TS - 함수의 type alias
type 작명 = (파라미터 type) => return type; 으로 함수의 alias타입을 지정해준다. type Func3 = (a :string) => number; let func3 :Func3 = (a) => { return 10;} 이해하기 쉽게 예시를 들어보면 type UserInfo = { name : string, age : number, plusOne : (a:number) => number, changeName : () => void } let userInfo :UserInfo = { name : 'kim', age : 30, plusOne(a){ return a + 1; }, changeName : () => { console.log('안녕'); } } 조금 복잡하지만 함수의 al..
Html_css_js
2023. 1. 5. 18:13