@tomino/dynamic-form-semantic-ui
Version:
Semantic UI form renderer based on dynamic form generation
20 lines (19 loc) • 436 B
TypeScript
import React from 'react';
import { AlertManager } from 'react-alert';
declare type User = {
name?: string;
id?: string;
roles?: string[];
};
export declare type ContextType = {
alert?: AlertManager;
authToken?: string;
auth: {
user?: User;
logout?: Function;
};
app: any;
};
export declare const context: ContextType;
export declare const Context: React.Context<ContextType>;
export {};