강의

멘토링

커뮤니티

Inflearn Community Q&A

rladntjr98088289's profile image
rladntjr98088289

asked

[Renewal] TypeScript All-in-One: Part 1. Basic Grammar

Required, Record, NonNullable type analysis

NonNullable 타입 변경사항

Written on

·

601

3

안녕하세요~~ 질문 글은 아닌데

바뀐 부분이 있는 것 같아서 공유할겸

글 작성합니다!!

기존의 NonNullable은

null 과 undefined 를 임의의 타입으로 순회 하면서

검사하던 방식에서

type NonNullable<T> = T & {}

Object type 과 임의의 타입을 묶어

null 과 undefined 를 거르는 방식으로 변경된것 같습니다!!

별건 아닌데 앞 내용의 object type 복습할겸 공유 드립니다!!

typescript

Answer

This question is waiting for answers
Be the first to answer!
rladntjr98088289's profile image
rladntjr98088289

asked

Ask a question