UNPKG

517 BTypeScriptView Raw
1import { BaseInput } from './base-input';
2export declare const TEXT_CORPUS: any;
3export declare const NUMBER_CORPUS: any[];
4export declare const BOOLEAN_CORPUS: any[];
5export declare const ANY_CORPUS: any[];
6export interface TestConfig {
7 defaultValue: any;
8 corpus: any;
9 testItem?: boolean;
10 testForm?: boolean;
11 onValueChange?: (value: any) => boolean;
12 onFocusChange?: (isFocused: boolean) => boolean;
13}
14export declare function commonInputTest<T>(input: BaseInput<T>, config: TestConfig): void;