Readonly
提出詳細
type MyReadonly<T> = { readonly [K in keyof T]: T[K] }
提出日時 | 2023-08-05 04:05:30 |
---|---|
問題 | Readonly |
ユーザー | tekihei2317 |
ステータス | 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 } }