chore(00008-medium-readonly-2): add test case (#10465)

This commit is contained in:
zz 2022-09-03 12:57:33 +08:00 committed by GitHub
parent 4cd8402c73
commit f3b8f827aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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