UNPKG

can-can-word-bug

Version:

can-can-word-bug 是一个 TS 编写的工具库

8 lines (7 loc) 198 B
/** * 与 Readonly 相反,从一个对象类型中去掉 readonly 修饰符,使其所有属性可写。 */ type Writable<T> = { -readonly [P in keyof T]: T[P]; }; export default Writable;