union type 탈출하기

context에서 초기화시에 undefined고, 추후에 Provider에서 어떤 인터페이스에 맞게 값을 넣어준다.

if문으로 특정 타입 걸러서 미리 리턴 및 throw하기

Last updated

Was this helpful?