drf-react-by-schema
Version:
Components and Tools for building a React App having Django Rest Framework (DRF) as server
22 lines • 701 B
TypeScript
import React from 'react';
import { Theme } from '@mui/material/styles';
export interface ServerEndPoint {
url: string;
apiTokenUrl: string;
api?: string;
signUp?: string;
autocomplete?: string;
getToken?: string;
refreshToken?: string;
verifyToken?: string;
media?: string;
}
export interface DRFReactBySchemaContextType {
serverEndPoint: ServerEndPoint | null;
theme: Theme;
isInBatches?: boolean;
firstBatchLength?: number;
}
export declare const DRFReactBySchemaContext: React.Context<DRFReactBySchemaContextType>;
export declare const useDRFReactBySchema: () => DRFReactBySchemaContextType;
//# sourceMappingURL=DRFReactBySchemaContext.d.ts.map