摘要: export type Letter = 'a' | 'b' | 'c' type RemoveC<TType> = TType extends 'c' ? never: TType; type WithoutC = RemoveC<Letter>; 阅读全文
posted @ 2022-04-25 14:48 Zhentiw 阅读(29) 评论(0) 推荐(0) 编辑
摘要: class SDK { constructor(public loggedInUserId?: string) {} createPost(title: string) { this.assertUserIsLoggedIn(); createPost(this.loggedInUserId, ti 阅读全文
posted @ 2022-04-25 14:42 Zhentiw 阅读(43) 评论(0) 推荐(0) 编辑