Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 250 Bytes

7-readonly.md

File metadata and controls

14 lines (12 loc) · 250 Bytes

// in keyof 명령어로 key-value 받아올 수 있다. type MyReadonly = { readonly[P in keyof T]: T[P]; }

interface Todo { title: string description: string }

const todo: MyReadonly = { title: "Hey", description: "foobar" }