verificator
Version:
Client and server-side validation JavaScript library
16 lines (15 loc) • 427 B
TypeScript
import { Store } from 'redux';
import { IState } from './types';
export default class ErrorBag {
protected _store: Store<IState>;
constructor(store: Store<IState>);
add(key: string, message: string): this;
remove(key: string): this;
clear(): this;
first(key: string): string;
has(key: string): boolean;
get(key: string): string[];
all(): string[];
any(): boolean;
count(): number;
}