Typehero Challenge

(문제 링크)[https://typehero.dev/challenge/generic-type-arguments]문제type GroceryStore = unknown;type GroceryItem = unknown;type CapreseSalad = unknown;이 타입을 변형하여import { Expect, Equal } from 'type-testing';type test_CapreseSaladName = Expect>;type test_CapreseSaladPrice = Expect>;type test_CapreseSaladInStock = Expect>;type test_KrogerDetroit = Expect, { name: 'Kroger', city: 'Detroit' }>>;type tes..
문제 번역Hello, World!Type Challenges에서는 타입 시스템 자체를 사용해 검증을 합니다.이 챌린지에서는 밑에 코드를 타입 체크 오류 없이 테스트를 통과시키게 만들어야 합니다.// expected to be stringtype HelloWorld = any// you should make this worktype test = Expect>Take the Challenge 버튼을 클릭해 코딩을 시작하세요! Happy Hacking!이 챌린지는 Type Challenges에 의해 포팅 되었으며, antfu에 의해 작성되었습니다.문제type HelloWorld = any // expected to be a string이것을import type { Equal, Expect, NotAny } f..
tmdgns
'Typehero Challenge' 카테고리의 글 목록