ontime-components
Version:
List of react components
17 lines (16 loc) • 516 B
TypeScript
import { PureComponent } from 'react';
import { IProps } from '../../libs/interfaces';
declare type TErrorName = {
name: string;
};
declare type TErrorMessage = {
message: string;
};
declare type TError = string | Error | TErrorName | TErrorMessage;
interface IInputErrorsProps extends IProps {
value: TError[] | null;
}
declare class InputErrors extends PureComponent<IInputErrorsProps> {
render(): JSX.Element | null;
}
export { InputErrors, IInputErrorsProps, TError, TErrorName, TErrorMessage };