qlin dc3e0aceb1
Ts type (#133)
* fix: 优化类型提示

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

* feat: 配置插件api提示

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

27 lines
647 B
TypeScript

import { Component } from 'vue';
import { FrameworkLifeCycles, MicroApp } from 'qiankun';
interface AppOption {
name: string;
entry: string;
props: Record<string, any>;
}
declare module '@fesjs/fes' {
interface PluginBuildConfig {
qiankun?:
| {
main?: {
apps: AppOption[];
lifeCycles?: FrameworkLifeCycles<MicroApp>;
[key: string]: any;
};
micro?: {};
}
| false;
}
export const MicroApp: Component;
export const MicroAppWithMemoHistory: Component;
}