본문 바로가기

rhanziy

검색하기
rhanziy
프로필사진 rhanziy

  • 분류 전체보기 (170)
    • git (3)
    • Html_css_js (55)
    • React (25)
    • React Native (20)
    • Next.js (13)
    • Node.js (12)
    • Java (22)
    • Development setting (7)
    • study (9)
    • doodle (4)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
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
  • interface
  • Filter
  • reactnative
  • 슬라이딩윈도우
  • app.post
  • async
  • 상속
  • map
  • 스크롤이벤트
  • Spring
  • supabase 페이지네이션
  • set
  • 코드푸시
  • 타입스크립트
  • supabase auth
  • generic
  • codepush
  • Next.js
  • supabase authentication
  • xlsx-js-style
  • array
  • extends
  • 페이지네이션
  • code-push-standalone
  • 이진탐색
  • TS
  • meatadata
  • javascript
  • 글또10기x코드트리
  • react
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록함수 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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바