mirror of
https://github.com/type-challenges/type-challenges.git
synced 2025-12-08 19:06:13 +00:00
enhance: add test cases to 2793-medium-mutable (#9459)
This commit is contained in:
parent
3b25f515f8
commit
b82e5634f9
@ -10,6 +10,16 @@ interface Todo1 {
|
||||
}
|
||||
}
|
||||
|
||||
type List = [1, 2, 3]
|
||||
|
||||
type cases = [
|
||||
Expect<Equal<Mutable<Readonly<Todo1>>, Todo1>>,
|
||||
Expect<Equal<Mutable<Readonly<List>>, List>>,
|
||||
]
|
||||
|
||||
type errors = [
|
||||
// @ts-expect-error
|
||||
Mutable<'string'>,
|
||||
// @ts-expect-error
|
||||
Mutable<0>,
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user