문제
HelloWorld 타입이 string이 되어야 합니다.
// string이 되어야 합니다.
type HelloWorld = any
풀이
// ============= Test Cases =============
import type { Equal, Expect, NotAny } from "./test-utils";
type cases = [Expect<NotAny<HelloWorld>>, Expect<Equal<HelloWorld, string>>];
// ============= Your Code Here =============
type HelloWorld = string; // expected to be a string
'Frontend > Type-Challenge' 카테고리의 다른 글
[타입챌린지/type-challenge] Readonly (0) | 2023.01.26 |
---|---|
[타입챌린지/type-challenge] Pick (0) | 2023.01.26 |
[타입챌린지/type-challenge] Includes (2) | 2023.01.25 |
[타입챌린지/type-challenge] Awaited (0) | 2023.01.25 |
[타입챌린지/type-challenge] First of Array (0) | 2023.01.23 |