import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from "react"; import { AnyFunction } from "../typings"; export interface WithChildren { children: ReactNode; } export interface WithRef { ref?: MutableRefObject; } export interface WithClassName { className?: string; } export type SetState = Dispatch>; export type UseStateProps = { [key in Name]: T; } & { [key in `set${Capitalize}`]: SetState; }; export type OnSubmit = (values: Values) => Return; export interface WithOnSubmit { onSubmit: OnSubmit; } export interface WithOnClick { onClick: AnyFunction; } //# sourceMappingURL=types.d.ts.map