import { ReactNode } from 'react';
import { PRIMARY_KEY } from '../const';
export declare type IObjectType = 'String' | 'Number' | 'Boolean' | 'Object' | 'Array' | 'Function' | 'Null' | 'Undefined';
export declare type Override
= Omit
& S;
export interface IBasicProps {
children?: ReactNode | ReactNode[];
}
export interface IBasicRouteCompProps extends IBasicProps {
match: {
isExact: boolean;
params: T;
path: string;
url: string;
};
location: {
hash: string;
key: string;
pathname: string;
search: string;
};
}
export interface ICommonRes {
code: number;
data: T;
msg: string;
stack?: string;
success?: boolean;
}
export interface IErrorRes {
code?: string;
message?: string;
[props: string]: any;
}
export interface IPageInfoRes {
pageNum: number;
pageSize: number;
total: number;
list: Array;
}
export declare type IGraphqlColAttr = {
[prop: string]: Array;
};
export declare type IRecordAttr = {
[PRIMARY_KEY]: string;
[prop: string]: any;
};
export interface IReducerAction {
type: T;
payload?: P;
}