@macrof/shared
Version:
React MicroFrontend Shared, Typescript, Webpack 5, ModuleFederation
7 lines (6 loc) • 428 B
TypeScript
type ConstructorType = new (value: any, ...args: any) => any;
declare const isFilledObject: (value: any) => boolean;
declare const isEmptyObject: (value: any) => boolean;
declare const plainToNew: <R>(TypeName: ConstructorType, value: object | object[] | undefined, ...args: any) => R;
declare const includedPath: (first?: string, second?: string) => boolean;
export { isFilledObject, isEmptyObject, plainToNew, includedPath };