TypeScript 高级类型
摘要:类型的且运算 interface A { a1: string a2: string } interface B { b1: number b2: string } let c: A & B = { a1: 'hi', a2: 'hello', b1: 2, b2: 'a' } // react c
阅读全文
posted @ 2023-02-12 23:53
posted @ 2023-02-12 23:53
posted @ 2022-12-17 15:24