mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-19 09:24:46 +08:00
10 lines
208 B
TypeScript
10 lines
208 B
TypeScript
// 定义一个接口,用于限制person对象的具体属性
|
||
export interface PersonInter {
|
||
id: string,
|
||
name: string,
|
||
age: number
|
||
}
|
||
|
||
// 自定义类型
|
||
export type Persons = Array<PersonInter>
|