首页笔记趣玩其他
章节
    基础
    Record
    映射属性,即下面属性全部映射为 stringtype PersonKey = "name" | "age"; type PersonType = Record<PersonKey, string>;
    lhh|07/31/2024 14:17
    基础
    Partial Required
    type PersonType = { name: string; age: string; }; type PersonType2 = Partial<PersonType>; type _
    lhh|07/31/2024 14:16
    基础
    Extract Exclude
    type T1 = Extract<"a" | "b" | "c", "a" | "f">; type T11 = "a"; // 等效于 type T2 = Exclude<"a" | "b" |
    lhh|07/31/2024 14:16
    基础
    Pick Omit
    type Person = { id: string; name: string; age: number; }; type NewPersonPick = Pick<Person, "n
    lhh|07/31/2024 14:16
    基础
    type 和 interface
    都可以用来描述对象或函数type Person = { name: string; move: (x: number) => void }; interface Person { name: st
    lhh|07/31/2024 14:16
    博主很懒,就这么多啦~~
    JavaScriptTypeScriptReactNpmGitCss小程序面试题
    All基础进阶组件使用