Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>EAHNew to Visual Studio Code? Get it now.
EAH

EAH

sleepingj

|
16 installs
| (0) | Free
eah builder
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

EAH README

搭配 eah 使用

npm i eah -S
npm i eah-mh -S

右键 interface.ts -> gen eah

Editor

enum Sex {
    男 = 1,
    女 = 2
}

enum Tag {
    E = 1,
    A = 2,
    H = 3
}

interface GroupItem {
    id: number, // ID
    desc: string // 名称
}


export interface FooReq {
    name: string, //*姓名
    readonly age: number, //年龄
    mobile: number, //手机
    sex: Sex, //性别
    tag: Tag[], //标签
    city: CityId, //城市
    appointment: DataFromCur, //日期
    group: GroupItem[], // 群组
    isVip: boolean, // 是否VIP
    _account: number // 账户余额
}



Lister


enum Sex {
    男 = 1,
    女 = 2
}


export interface FooReq {
    name: string, //*姓名
    age: number, //年龄
    mobile: number, //手机
    sex: Sex, //性别
    city: CityId, //城市
    birthday: DateStr //生日
}

export interface FooRes {
    name: string, //姓名
    age: number,//年龄
    mobile: number,//手机
    sex: Sex,//性别
    birthday: string //生日
}

tsx快捷命令

in extendConfig

config ...

in

slot ...

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft