UNPKG

react-use-password-validator

Version:
10 lines (9 loc) 410 B
import React, { FC } from "react"; import { IValidatorOption } from "./use-password-validator"; export interface IOption extends Partial<IValidatorOption> { } export interface IWithProps { isValid: boolean; setIsValid: (input: string) => void; } export declare function useWrapper(option?: IOption): <PropsT>(WrappedComponent: React.FC<PropsT & IWithProps>) => (props: PropsT) => JSX.Element;