piral-core
Version:
The core library for creating a Piral instance.
16 lines (15 loc) • 433 B
TypeScript
import * as React from 'react';
import { ErrorComponentsState } from '../types';
/**
* The props for the SetErrors component.
*/
export interface SetErrorsProps {
/**
* The error views of the Piral instance.
*/
errors?: Partial<ErrorComponentsState>;
}
/**
* The component capable of batch setting error handling components.
*/
export declare function SetErrors({ errors }: SetErrorsProps): React.ReactElement;