@macrof/loader
Version:
React MicroFrontend Loader, Typescript, Webpack 5, ModuleFederation
26 lines (25 loc) • 545 B
TypeScript
import { ComponentClass as CC, FC } from "react";
export declare namespace N_IMF {
type TSubsDetail = {
to: string;
name: string;
icon?: FC;
hide?: boolean;
};
type TSubs = {
isMain: string[];
approvements: TSubsDetail[];
finances: TSubsDetail[];
};
type TProps = {
isExpanded: boolean;
};
type TMenu = {
Menu: CC<TProps>;
SubMenu: TSubs;
};
type TData = {
Main: CC<TProps> | FC<TProps>;
SubMenu: TSubs;
};
}