@fakel/rest-admin
Version:
An application that makes it easier to work with your API
42 lines (41 loc) • 1.32 kB
TypeScript
import { FormItemProps } from 'antd/lib/form';
import { InputProps } from 'antd/lib/input';
import { SelectProps } from 'antd/lib/select';
import { DatePickerProps } from 'antd/lib/date-picker';
import { InputNumberProps } from 'antd/lib/input-number';
import { ColumnType } from 'antd/lib/table';
import React, { Key } from 'react';
import { FieldConfig } from 'formik';
export declare type LinkT = 'edit' | 'show' | 'list' | 'create';
export declare type FieldProps = {
source: string;
label?: string;
record?: string;
reference?: string;
};
export interface FormFieldProps extends FieldConfig {
component?: any;
}
export declare type RedirectTo = 'create' | 'list' | 'edit' | 'show';
export declare type AntFieldProps = FormItemProps<any> & InputProps & (SelectProps<any> | DatePickerProps | InputNumberProps);
declare type SortOrder = 'descend' | 'ascend';
export declare type ColumnT = {
id?: string;
title: string;
source: string;
fieldProps?: any;
Field: any;
FieldChildren?: () => React.ReactNode;
reference?: string;
link?: string;
sortDirections?: SortOrder[];
sorter?: (a: any, b: any) => any;
query?: string;
queryField?: string;
options?: ColumnType<any>;
};
export declare type OptionT = {
value: Key;
label: string;
};
export {};