mirror of
https://github.com/type-challenges/type-challenges.git
synced 2025-12-08 19:06:13 +00:00
chore(00008-medium-readonly-2): add test case (#10465)
This commit is contained in:
parent
4cd8402c73
commit
f3b8f827aa
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user