UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

9 lines (8 loc) 462 B
export type ValidatorRunOnSubmit = 'always' | 'never' | 'when-changed'; export type ValidatorOptions = { runOnSubmit?: ValidatorRunOnSubmit; }; type ValidatorFunction = (...args: Array<any>) => unknown; export declare function withValidatorOptions<ValidatorFn extends ValidatorFunction>(validator: ValidatorFn, options: ValidatorOptions): ValidatorFn; export declare function getValidatorOptions(validator: unknown): ValidatorOptions | undefined; export {};