yao-app-ts-types
Version:
typescript types for yao application
27 lines (24 loc) • 779 B
TypeScript
import { YaoQueryParam } from "./query_param";
export type ActionDefault = YaoQueryParam.QueryParam | any
export namespace YaoAction {
/**自定义关联处理器*/
export type Process = {
/**备注【管理字段】 */
comment?: string;
// name?: string;
/**关联处理器名称 */
process?: string;
/**框架默认的关联处理器名称,如果不指定process,会使用的处理器 */
bind?: string;
/**鉴权方式,可使用多个,使用逗号隔开 */
guard?: string;
/**关联处理器默认值,null 表示不设定默认值*/
default?: ActionDefault[];
/**未使用 */
disable?: boolean;
// before?: hook.Before;
// after?: hook.After;
// handler?: Function;
};
}
export default YaoAction;