source: imaps-frontend/node_modules/react-use/esm/useMultiStateValidator.d.ts@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 539 bytes
Line 
1import { StateValidator, UseStateValidatorReturn, ValidityState } from './useStateValidator';
2export declare type MultiStateValidatorStates = any[] | {
3 [p: string]: any;
4} | {
5 [p: number]: any;
6};
7export declare type MultiStateValidator<V extends ValidityState, S extends MultiStateValidatorStates> = StateValidator<V, S>;
8export declare function useMultiStateValidator<V extends ValidityState, S extends MultiStateValidatorStates>(states: S, validator: MultiStateValidator<V, S>, initialValidity?: V): UseStateValidatorReturn<V>;
Note: See TracBrowser for help on using the repository browser.