vite-plugin-uni-pages2dts
Version:
A Vite plugin to generate TypeScript types for UniApp pages.
29 lines (24 loc) • 440 B
text/typescript
export interface ConditionItem {
/**
* 启动模式名称
*/
name: string
/**
* 启动页面路径
*/
path: string
/**
* 启动参数,可在页面的 onLoad 函数里获得
*/
query?: string
}
export interface Condition {
/**
* 当前激活的模式,list 节点的索引值
*/
current: number
/**
* 启动模式列表
*/
list: Partial<ConditionItem>[]
}