Readonly
提出詳細
type MyReadonly<T> = { readonly [P in keyof T]: T[P] }
| 提出日時 | 2025-09-14 07:42:39 | 
|---|---|
| 問題 | Readonly | 
| ユーザー | balckowl | 
| ステータス | 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 } }