20 lines
393 B
TypeScript
20 lines
393 B
TypeScript
import type { RegisterOptions } from "react-hook-form"
|
|
|
|
export enum Key {
|
|
CHAR_LENGTH = "CHAR_LENGTH",
|
|
NUM = "NUM",
|
|
SPECIAL_CHAR = "SPECIAL_CHAR",
|
|
UPPERCASE = "UPPERCASE",
|
|
}
|
|
|
|
export interface NewPasswordProps
|
|
extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
label?: string
|
|
registerOptions?: RegisterOptions
|
|
}
|
|
|
|
export interface IconProps {
|
|
matcher: Key
|
|
messages: Key[]
|
|
}
|