Created
May 25, 2019 10:13
-
-
Save dziamid/aa750155641fbb95d77a82b2eca74993 to your computer and use it in GitHub Desktop.
react-admin.d.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { ComponentType } from 'react'; | |
import { AdminProps } from 'ra-core/esm/CoreAdmin'; | |
/** Declaration file generated by dts-gen */ | |
export class AppBar extends React.Component<any, any> {} | |
export class AppBarMobile extends React.Component<any, any> {} | |
export class ArrayField extends React.Component<any, any> {} | |
export class ArrayInput extends React.Component<any, any> {} | |
export class Authenticated extends React.Component<any, any> {} | |
export class BooleanField extends React.Component<any, any> {} | |
export class BulkActions extends React.Component<any, any> {} | |
export class BulkActionsToolbar extends React.Component<any, any> {} | |
export class BulkDeleteAction extends React.Component<any, any> {} | |
export class BulkDeleteWithConfirmButton extends React.Component<any, any> {} | |
export class BulkDeleteWithUndoButton extends React.Component<any, any> {} | |
export class Button extends React.Component<any, any> {} | |
export class CardActions extends React.Component<any, any> {} | |
export class CardContentInner extends React.Component<any, any> {} | |
export class ChipField extends React.Component<any, any> {} | |
export class CloneButton extends React.Component<any, any> {} | |
export class Confirm extends React.Component<any, any> {} | |
export class CoreAdmin extends React.Component<any, any> {} | |
export class CreateButton extends React.Component<any, any> {} | |
export class CreateView extends React.Component<any, any> {} | |
export class DashboardMenuItem extends React.Component<any, any> {} | |
export class Datagrid extends React.Component<any, any> {} | |
export class DatagridBody extends React.Component<any, any> {} | |
export class DatagridHeaderCell extends React.Component<any, any> {} | |
export class DatagridRow extends React.Component<any, any> {} | |
export class DateField extends React.Component<any, any> {} | |
export class DeleteWithConfirmButton extends React.Component<any, any> {} | |
export class DeleteWithUndoButton extends React.Component<any, any> {} | |
export class EditButton extends React.Component<any, any> {} | |
export class EditGuesser extends React.Component<any, any> {} | |
export class EditView extends React.Component<any, any> {} | |
export class EmailField extends React.Component<any, any> {} | |
export class Error extends React.Component<any, any> {} | |
export class ExportButton extends React.Component<any, any> {} | |
export class FieldTitle extends React.Component<any, any> {} | |
export class FileField extends React.Component<any, any> {} | |
export class Filter extends React.Component<any, any> {} | |
export class FilterButton extends React.Component<any, any> {} | |
export class FilterForm extends React.Component<any, any> {} | |
export class FormField extends React.Component<any, any> {} | |
export class FormInput extends React.Component<any, any> {} | |
export class FormTab extends React.Component<any, any> {} | |
export class FunctionField extends React.Component<any, any> {} | |
export class Header extends React.Component<any, any> {} | |
export class ImageField extends React.Component<any, any> {} | |
export class InferredElement extends React.Component<any, any> {} | |
export class Labeled extends React.Component<any, any> {} | |
export class Layout extends React.Component<any, any> { | |
constructor(props: any); | |
static defaultProps: { | |
theme: { | |
palette: { | |
secondary: { | |
contrastText: string; | |
dark: string; | |
light: string; | |
main: string; | |
}; | |
}; | |
typography: { | |
title: { | |
fontWeight: number; | |
}; | |
}; | |
}; | |
}; | |
} | |
export class LinearProgress extends React.Component<any, any> {} | |
export class Link extends React.Component<any, any> {} | |
export class ListActions extends React.Component<any, any> {} | |
export class ListGuesser extends React.Component<any, any> {} | |
export class ListToolbar extends React.Component<any, any> {} | |
export class Loading extends React.Component<any, any> {} | |
export class LoadingIndicator extends React.Component<any, any> {} | |
export class Login extends React.Component<any, any> { | |
static defaultProps: { | |
backgroundImage: string; | |
loginForm: { | |
$$typeof: any; | |
key: any; | |
props: {}; | |
ref: any; | |
type: any; | |
}; | |
theme: { | |
palette: { | |
secondary: { | |
contrastText: string; | |
dark: string; | |
light: string; | |
main: string; | |
}; | |
}; | |
typography: { | |
title: { | |
fontWeight: number; | |
}; | |
}; | |
}; | |
}; | |
} | |
export class LoginForm extends React.Component<any, any> {} | |
export class Logout extends React.Component<any, any> {} | |
export class Menu extends React.Component<any, any> {} | |
export class MenuItemLink extends React.Component<any, any> {} | |
export class Mutation extends React.Component<any, any> {} | |
export class NotFound extends React.Component<any, any> {} | |
export class Notification extends React.Component<any, any> {} | |
export class NumberField extends React.Component<any, any> { | |
static defaultProps: { | |
textAlign: string; | |
}; | |
} | |
export class Pagination extends React.Component<any, any> {} | |
export class PaginationLimit extends React.Component<any, any> {} | |
export class Query extends React.Component<any, any> {} | |
export class ReferenceArrayField extends React.Component<any, any> {} | |
export class ReferenceArrayFieldController extends React.Component<any, any> {} | |
export class ReferenceArrayInputController extends React.Component<any, any> {} | |
export class ReferenceField extends React.Component<any, any> {} | |
export class ReferenceFieldController extends React.Component<any, any> {} | |
export class ReferenceInputController extends React.Component<any, any> {} | |
export class ReferenceManyFieldController extends React.Component<any, any> {} | |
export class RefreshButton extends React.Component<any, any> {} | |
export class RefreshIconButton extends React.Component<any, any> {} | |
export class ResettableTextField extends React.Component<any, any> {} | |
export class Responsive extends React.Component<any, any> { | |
static contextTypes: {}; | |
} | |
export class RichTextField extends React.Component<any, any> { | |
static defaultProps: { | |
stripTags: boolean; | |
}; | |
} | |
export class SaveButton extends React.Component<any, any> {} | |
export class SearchInput extends React.Component<any, any> {} | |
export class SelectField extends React.Component<any, any> {} | |
export class ShowButton extends React.Component<any, any> {} | |
export class ShowGuesser extends React.Component<any, any> {} | |
export class ShowView extends React.Component<any, any> { | |
static defaultProps: { | |
classes: {}; | |
}; | |
} | |
export class Sidebar extends React.Component<any, any> {} | |
export class SimpleForm extends React.Component<any, any> {} | |
export class SimpleFormIterator extends React.Component<any, any> {} | |
export class SimpleList extends React.Component<any, any> {} | |
export class SingleFieldList extends React.Component<any, any> {} | |
export class Tab extends React.Component<any, any> {} | |
export class TestContext extends React.Component<any, any> {} | |
export class TextField extends React.Component<any, any> {} | |
export class Title extends React.Component<any, any> {} | |
export class Toolbar extends React.Component<any, any> {} | |
export class TranslationProvider extends React.Component<any, any> {} | |
export class UrlField extends React.Component<any, any> {} | |
export class UserMenu extends React.Component<any, any> { | |
static defaultProps: { | |
icon: { | |
$$typeof: any; | |
key: any; | |
props: {}; | |
ref: any; | |
type: any; | |
}; | |
label: string; | |
}; | |
} | |
export const AUTH_CHECK: string; | |
export const AUTH_ERROR: string; | |
export const AUTH_GET_PERMISSIONS: string; | |
export const AUTH_LOGIN: string; | |
export const AUTH_LOGOUT: string; | |
export const BEFORE_LOCATION_CHANGE: string; | |
export const CHANGE_LOCALE: string; | |
export const CHANGE_LOCALE_FAILURE: string; | |
export const CHANGE_LOCALE_SUCCESS: string; | |
export const COMPLETE: string; | |
export const CREATE: string; | |
export const CRUD_CHANGE_LIST_PARAMS: string; | |
export const CRUD_CREATE: string; | |
export const CRUD_CREATE_FAILURE: string; | |
export const CRUD_CREATE_LOADING: string; | |
export const CRUD_CREATE_SUCCESS: string; | |
export const CRUD_DELETE: string; | |
export const CRUD_DELETE_FAILURE: string; | |
export const CRUD_DELETE_LOADING: string; | |
export const CRUD_DELETE_MANY: string; | |
export const CRUD_DELETE_MANY_FAILURE: string; | |
export const CRUD_DELETE_MANY_LOADING: string; | |
export const CRUD_DELETE_MANY_SUCCESS: string; | |
export const CRUD_DELETE_SUCCESS: string; | |
export const CRUD_GET_ALL: string; | |
export const CRUD_GET_ALL_FAILURE: string; | |
export const CRUD_GET_ALL_LOADING: string; | |
export const CRUD_GET_ALL_SUCCESS: string; | |
export const CRUD_GET_LIST: string; | |
export const CRUD_GET_LIST_FAILURE: string; | |
export const CRUD_GET_LIST_LOADING: string; | |
export const CRUD_GET_LIST_SUCCESS: string; | |
export const CRUD_GET_MANY: string; | |
export const CRUD_GET_MANY_ACCUMULATE: string; | |
export const CRUD_GET_MANY_FAILURE: string; | |
export const CRUD_GET_MANY_LOADING: string; | |
export const CRUD_GET_MANY_REFERENCE: string; | |
export const CRUD_GET_MANY_REFERENCE_FAILURE: string; | |
export const CRUD_GET_MANY_REFERENCE_LOADING: string; | |
export const CRUD_GET_MANY_REFERENCE_SUCCESS: string; | |
export const CRUD_GET_MANY_SUCCESS: string; | |
export const CRUD_GET_MATCHING: string; | |
export const CRUD_GET_MATCHING_ACCUMULATE: string; | |
export const CRUD_GET_MATCHING_FAILURE: string; | |
export const CRUD_GET_MATCHING_LOADING: string; | |
export const CRUD_GET_MATCHING_SUCCESS: string; | |
export const CRUD_GET_ONE: string; | |
export const CRUD_GET_ONE_FAILURE: string; | |
export const CRUD_GET_ONE_LOADING: string; | |
export const CRUD_GET_ONE_SUCCESS: string; | |
export const CRUD_HIDE_FILTER: string; | |
export const CRUD_SET_FILTER: string; | |
export const CRUD_SHOW_FILTER: string; | |
export const CRUD_UPDATE: string; | |
export const CRUD_UPDATE_FAILURE: string; | |
export const CRUD_UPDATE_LOADING: string; | |
export const CRUD_UPDATE_MANY: string; | |
export const CRUD_UPDATE_MANY_FAILURE: string; | |
export const CRUD_UPDATE_MANY_LOADING: string; | |
export const CRUD_UPDATE_MANY_SUCCESS: string; | |
export const CRUD_UPDATE_SUCCESS: string; | |
export const DEFAULT_LOCALE: string; | |
export const DELETE: string; | |
export const DELETE_MANY: string; | |
export const FETCH_CANCEL: string; | |
export const FETCH_END: string; | |
export const FETCH_ERROR: string; | |
export const FETCH_START: string; | |
export const GET_LIST: string; | |
export const GET_MANY: string; | |
export const GET_MANY_REFERENCE: string; | |
export const GET_ONE: string; | |
export const HIDE_NOTIFICATION: string; | |
export const INITIALIZE_FORM: string; | |
export const REDUX_FORM_NAME: string; | |
export const REFRESH_VIEW: string; | |
export const REGISTER_RESOURCE: string; | |
export const RESET_FORM: string; | |
export const SET_LIST_SELECTED_IDS: string; | |
export const SET_SIDEBAR_VISIBILITY: string; | |
export const SHOW_NOTIFICATION: string; | |
export const START_OPTIMISTIC_MODE: string; | |
export const STOP_OPTIMISTIC_MODE: string; | |
export const TOGGLE_LIST_ITEM: string; | |
export const TOGGLE_SIDEBAR: string; | |
export const TranslationContext: { | |
$$typeof: any; | |
Consumer: { | |
$$typeof: any; | |
Consumer: any; | |
Provider: { | |
$$typeof: any; | |
}; | |
}; | |
Provider: { | |
$$typeof: any; | |
}; | |
}; | |
export const UNDO: string; | |
export const UNDOABLE: string; | |
export const UNREGISTER_RESOURCE: string; | |
export const UPDATE: string; | |
export const UPDATE_MANY: string; | |
export const USER_CHECK: string; | |
export const USER_CHECK_SUCCESS: string; | |
export const USER_LOGIN: string; | |
export const USER_LOGIN_FAILURE: string; | |
export const USER_LOGIN_LOADING: string; | |
export const USER_LOGIN_SUCCESS: string; | |
export const USER_LOGOUT: string; | |
export const defaultTheme: { | |
palette: { | |
secondary: { | |
contrastText: string; | |
dark: string; | |
light: string; | |
main: string; | |
}; | |
}; | |
typography: { | |
title: { | |
fontWeight: number; | |
}; | |
}; | |
}; | |
export const fetchActionsWithArrayOfIdentifiedRecordsResponse: string[]; | |
export const fetchActionsWithArrayOfRecordsResponse: string[]; | |
export const fetchActionsWithRecordResponse: string[]; | |
export const fetchActionsWithTotalResponse: string[]; | |
export function AdminRouter(ownerProps: any, context: any): any; | |
export function AutocompleteArrayInput(props: any): any; | |
export function AutocompleteInput(props: any): any; | |
export function BooleanInput(props: any): any; | |
export function BulkDeleteButton(_a: any): any; | |
export function CheckboxGroupInput(props: any): any; | |
export function CoreAdminRouter(ownerProps: any, context: any): any; | |
export function Create(props: any): any; | |
export function CreateActions(_a: any): any; | |
export function CreateController(props: any): any; | |
export function DatagridCell(_a: any): any; | |
export function DatagridLoading(_a: any): any; | |
export function DateInput(props: any): any; | |
export function DateTimeInput(props: any): any; | |
export function DeleteButton(_a: any): any; | |
export function DisabledInput(props: any): any; | |
export function Edit(props: any): any; | |
export function EditActions(_a: any): any; | |
export function EditController(props: any): any; | |
export function FileInput(props: any): any; | |
export function FormDataConsumer(props: any): any; | |
export function Headroom(_a: any): any; | |
export function HttpError(message: any, status: any, body: any): any; | |
export function ImageInput(props: any): any; | |
export function List(props: any): any; | |
export function ListButton(_a: any): any; | |
export function ListController(props: any): any; | |
export function LongTextInput(props: any): any; | |
export function NullableBooleanInput(props: any): any; | |
export function NumberInput(props: any): any; | |
export function RadioButtonGroupInput(props: any): any; | |
export function RecordTitle(_a: any): any; | |
export function ReferenceArrayInput(props: any): any; | |
export function ReferenceInput(props: any): any; | |
export function ReferenceManyField(_a: any): any; | |
export function RoutesWithLayout(_a: any): any; | |
export function SelectArrayInput(props: any): any; | |
export function SelectInput(props: any): any; | |
export function Show(props: any): any; | |
export function ShowActions(_a: any): any; | |
export function ShowController(props: any): any; | |
export function SimpleShowLayout(_a: any): any; | |
export function TabbedForm(props: any): any; | |
export function TabbedShowLayout(props: any): any; | |
export function TabbedShowLayoutTabs(_a: any): any; | |
export function TextInput(props: any): any; | |
export function TitleForRecord(_a: any): any; | |
export function ViewTitle(_a: any): any; | |
export function WithPermissions(ownerProps: any, context: any): any; | |
export function accumulateSaga(): any; | |
export function addField(BaseComponent: any, fieldProps: any): any; | |
export function adminReducer(...args: any[]): any; | |
export function adminSaga(dataProvider: any, authProvider: any, i18nProvider: any): any; | |
export function authSaga(authProvider: any): any; | |
export function beforeLocationChange(_a: any): any; | |
export function callbackSaga(): any; | |
export function changeListParams(resource: any, params: any): any; | |
export function changeLocale(locale: any): any; | |
export function changeLocaleFailure(locale: any, error: any): any; | |
export function changeLocaleSuccess(locale: any, messages: any): any; | |
export function choices(...args: any[]): any; | |
export function complete(): any; | |
export function createAdminStore(_a: any): any; | |
export function createAppReducer(customReducers: any, locale: any, messages: any): any; | |
export function crudCreate(resource: any, data: any, basePath: any, redirectTo: any): any; | |
export function crudDelete( | |
resource: any, | |
id: any, | |
previousData: any, | |
basePath: any, | |
redirectTo: any, | |
refresh: any, | |
): any; | |
export function crudDeleteMany(resource: any, ids: any, basePath: any, refresh: any): any; | |
export function crudGetAll( | |
resource: any, | |
sort: any, | |
filter: any, | |
maxResults: any, | |
callback: any, | |
): any; | |
export function crudGetList(resource: any, pagination: any, sort: any, filter: any): any; | |
export function crudGetMany(resource: any, ids: any): any; | |
export function crudGetManyAccumulate(resource: any, ids: any): any; | |
export function crudGetManyReference( | |
reference: any, | |
target: any, | |
id: any, | |
relatedTo: any, | |
pagination: any, | |
sort: any, | |
filter: any, | |
source: any, | |
): any; | |
export function crudGetMatching( | |
reference: any, | |
relatedTo: any, | |
pagination: any, | |
sort: any, | |
filter: any, | |
): any; | |
export function crudGetMatchingAccumulate( | |
reference: any, | |
relatedTo: any, | |
pagination: any, | |
sort: any, | |
filter: any, | |
): any; | |
export function crudGetOne(resource: any, id: any, basePath: any, refresh: any): any; | |
export function crudUpdate( | |
resource: any, | |
id: any, | |
data: any, | |
previousData: any, | |
basePath: any, | |
redirectTo: any, | |
): any; | |
export function crudUpdateMany( | |
resource: any, | |
ids: any, | |
data: any, | |
basePath: any, | |
refresh: any, | |
): any; | |
export function defaultI18nProvider(locale: any): any; | |
export function downloadCSV(csv: any, filename: any): void; | |
export function email(...args: any[]): any; | |
export function errorSaga(): any; | |
export function fetchCancel(): any; | |
export function fetchEnd(): any; | |
export function fetchError(): any; | |
export function fetchSaga(dataProvider: any): any; | |
export function fetchStart(): any; | |
export function formMiddleware(): any; | |
export function getDefaultValues(...args: any[]): any; | |
export function getElementsFromRecords(records: any, types: any): any; | |
export function getFetchedAt( | |
newRecordIds: any, | |
oldRecordFetchedAt: any, | |
now: any, | |
cacheDuration: any, | |
): any; | |
export function getFieldLabelTranslationArgs(options: any): any; | |
export function getIds(state: any, relatedTo: any): any; | |
export function getListControllerProps(props: any): any; | |
export function getLocale(state: any): any; | |
export function getNotification(state: any): any; | |
export function getPossibleReferenceValues(state: any, props: any): any; | |
export function getPossibleReferences( | |
referenceState: any, | |
possibleValues: any, | |
selectedIds: any, | |
): any; | |
export function getReferenceResource(state: any, props: any): any; | |
export function getReferences(state: any, reference: any, relatedTo: any): any; | |
export function getReferencesByIds(state: any, reference: any, ids: any): any; | |
export function getResources(state: any): any; | |
export function hideFilter(resource: any, field: any): any; | |
export function hideNotification(): any; | |
export function i18nReducer(initialLocale: any, defaultMessages: any): any; | |
export function i18nSaga(i18nProvider: any): any; | |
export function initializeForm(initialValues: any): any; | |
export function isRequired(validate: any): any; | |
export function linkToRecord(basePath: any, id: any, linkType: any): any; | |
export function maxLength(...args: any[]): any; | |
export function maxValue(...args: any[]): any; | |
export function mergeTranslations(...args: any[]): any; | |
export function minLength(...args: any[]): any; | |
export function minValue(...args: any[]): any; | |
export function nameRelatedTo( | |
reference: any, | |
id: any, | |
resource: any, | |
target: any, | |
filter: any, | |
): any; | |
export function notificationSaga(): any; | |
export function number(...args: any[]): any; | |
export function queryReducer(previousState: any, _a: any): any; | |
export function redirectionSaga(): any; | |
export function refreshSaga(): any; | |
export function refreshView(): any; | |
export function regex(...args: any[]): any; | |
export function registerResource(resource: any): any; | |
export function removeEmpty(object: any): any; | |
export function removeKey(target: any, path: any): any; | |
export function required(...args: any[]): any; | |
export function resetForm(): any; | |
export function resolveBrowserLocale(defaultLocale: any): any; | |
export function resolveRedirectTo(redirectTo: any, basePath: any, id: any, data: any): any; | |
export function sanitizeListRestProps(props: any): any; | |
export function setFilter(resource: any, field: any, value: any): any; | |
export function setListSelectedIds(resource: any, ids: any): any; | |
export function setSidebarVisibility(isOpen: any): any; | |
export function showFilter(resource: any, field: any): any; | |
export function showNotification(message: any, type: any, notificationOptions: any): any; | |
export function startOptimisticMode(): any; | |
export function startUndoable(action: any): any; | |
export function stopOptimisticMode(): any; | |
export function toggleListItem(resource: any, id: any): any; | |
export function toggleSidebar(): any; | |
export function translate(BaseComponent: any, ...args: any[]): any; | |
export function undo(): any; | |
export function undoSaga(): any; | |
export function unloadSaga(): any; | |
export function unregisterResource(resourceName: any): any; | |
export function userCheck(payload: any, pathName: any, routeParams: any): any; | |
export function userLogin(payload: any, pathName: any): any; | |
export function userLogout(redirectTo: any): any; | |
export function warning(condition: any, message: any): void; | |
export function withDataProvider(Component: any): any; | |
export function withDefaultValue(DecoratedComponent: any): any; | |
export function withTranslate(BaseComponent: any, ...args: any[]): any; | |
// custom overrides | |
export * from 'ra-core'; | |
export class Admin extends React.Component<Partial<AdminProps>> {} | |
export class Resource extends React.Component<ResourceProps> {} | |
export interface ResourceProps { | |
context?: 'route' | 'registration'; | |
match?: ResourceMatch; | |
name: string; | |
list?: ComponentType<any>; | |
create?: ComponentType<any>; | |
edit?: ComponentType<any>; | |
show?: ComponentType<any>; | |
icon?: ComponentType<any>; | |
options?: object; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment