Q&A
구글 콘솔로그 오류창이 계속 떠요
혹시 시크릿모드에서 사용해도 저런게 뜨나요 시크릿모드에서 안뜨면 확장프로그램 문제일가능성도있습니다!
- Likes
- 0
- Comments
- 2
- Viewcount
- 375
Q&A
혹시 시크릿모드에서 사용해도 저런게 뜨나요 시크릿모드에서 안뜨면 확장프로그램 문제일가능성도있습니다!
Q&A
Distributive conditional types Conditional types in which the checked type is a naked type parameter are called distributive conditional types . Distributive conditional types are automatically distributed over union types during instantiation. For example, an instantiation of T extends U ? X : Y with the type argument A | B | C for T is resolved as (A extends U ? X : Y) | (B extends U ? X : Y) | (C extends U ? X : Y) . 공식문서 참고해서 혹시나 이부분고민하실 분들에게 설명드립니다 분배법칙으로 인해서 T 안에 유니온타입이 * 하나씩 * 대입해가면서 extends U 에 대입해가면서 포함되면 T 포함안되면 (never) never 는 유니온안에서 없는거나마찬가지입니다 즉 'Cat' | 'Dog' | never 이런결과를 얻었다면 => 'Cat' | 'Dog' 이런 타입이되는거죠
Q&A
이미지 사이즈 안보이시는분은 오른쪽클릭 새탭으로 여시면 코드 자세하게보입니다
Q&A
vetur 쓰시면 vue 혹은 하시고 탭 vue snippet3 면 vueinit