摘要: Implement the generic Mutable<T> which makes all properties in T mutable (not readonly). For example interface Todo { readonly title: string readonly 阅读全文
posted @ 2022-10-15 20:36 Zhentiw 阅读(12) 评论(0) 推荐(0) 编辑
摘要: Want to turn a module into a type? You can use typeof import('./') to grab the type of any module, even third-party ones. Here, we create a type from 阅读全文
posted @ 2022-10-15 20:27 Zhentiw 阅读(15) 评论(0) 推荐(0) 编辑