fes.js/packages/fes/types.d.ts
qlin f8b70f0ebb Ts type (#133)
* fix: 优化类型提示

* fix: 添加 enums 接口类型声明

* feat: 配置插件api提示

Co-authored-by: wanchun <445436867@qq.com>
2022-06-22 19:24:49 +08:00

22 lines
567 B
TypeScript

// @ts-ignore
import '@@/configType';
export * from '@fesjs/runtime';
export interface RouteMeta {
name?: string;
title?: string;
layout?: boolean | { sidebar?: boolean; header?: boolean; logo?: boolean };
}
export interface PluginRuntimeConfig {}
export interface PluginBuildConfig {}
export declare function defineRouteMeta(routeMeta: RouteMeta): RouteMeta;
export declare function defineBuildConfig(config: PluginBuildConfig ): PluginBuildConfig;
export declare function defineRuntimeConfig(config: PluginRuntimeConfig): PluginRuntimeConfig;