Skip to content

Commit

Permalink
chore(00008-medium-readonly-2): add test case (type-challenges#10465)
Browse files Browse the repository at this point in the history
  • Loading branch information
holazz authored Sep 3, 2022
1 parent 4cd8402 commit f3b8f82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions questions/00008-medium-readonly-2/test-cases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ type cases = [
Expect<Alike<MyReadonly2<Todo2, 'title' | 'description'>, Expected>>,
]

// @ts-expect-error
type error = MyReadonly2<Todo1, 'title' | 'invalid'>

interface Todo1 {
title: string
description?: string
Expand Down

0 comments on commit f3b8f82

Please sign in to comment.