Frontend/Type-Challenge
[타입챌린지/type-challenge] Hello World
jaenny.dev
2023. 1. 23. 17:42
문제
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