Type Challenges Judge

Merge

提出詳細

type Merge<T, K> = Omit<T, keyof K> & K
提出日時2024-10-28 18:34:27
問題Merge
ユーザーbalckowl
ステータスWrong Answer
テストケース
import type { Equal, Expect } from '@type-challenges/utils' type Foo = { a: number b: string } type Bar = { b: number c: boolean } type cases = [ Expect<Equal<Merge<Foo, Bar>, { a: number b: number c: boolean }>>, ]