Type Challenges Judge

Readonly

提出詳細

type MyReadonly<T> = { readonly [key in keyof T]: T[key] }
提出日時2023-09-12 15:37:56
問題Readonly
ユーザーsankantsu
ステータスAccepted
テストケース
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<MyReadonly<Todo1>, Readonly<Todo1>>>, ] interface Todo1 { title: string description: string completed: boolean meta: { author: string } }