@aplus-frontend/ui
Version:
12 lines (11 loc) • 525 B
TypeScript
export type Primitive = null | undefined | string | number | boolean | symbol | bigint;
export type LiteralUnion<LiteralType, BaseType extends Primitive> = LiteralType | (BaseType & Record<never, never>);
type modeType = LiteralUnion<'comp' | 'server', string>;
type Data = Array<Record<string, any>> | any;
export type Options = {
transfrom: [string] | [string, string[]];
targetkeys: Array<string>;
mode: modeType;
};
export declare function ApTransformDataHelper(data: Data, options: Options): any;
export {};