Installation
npm install --save @types/final-form-focus
Summary
This package contains type definitions for final-form-focus (https://github.com/final-form/final-form-focus).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/final-form-focus.
import { Decorator } from "final-form";
export interface FocusableInput {
name: string;
focus: () => void;
}
export type GetInputs = () => FocusableInput[];
export type FindInput = (inputs: FocusableInput[], errors: object) => FocusableInput | undefined;
export default function createDecorator<FormValues = object, InitialFormValues = object>(
getInputs?: GetInputs,
findInput?: FindInput,
): Decorator<FormValues, InitialFormValues>;
export function getFormInputs(formName: string): GetInputs;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: final-form
Credits
These definitions were written by Jeow Li Huan.