# 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.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/final-form-focus/index.d.ts)
````ts
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;

/* eslint-disable @definitelytyped/no-unnecessary-generics */
export default function createDecorator<FormValues = object, InitialFormValues = object>(
    getInputs?: GetInputs,
    findInput?: FindInput,
): Decorator<FormValues, InitialFormValues>;
/* eslint-enable @definitelytyped/no-unnecessary-generics */

export function getFormInputs(formName: string): GetInputs;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [final-form](https://npmjs.com/package/final-form)

# Credits
These definitions were written by [Jeow Li Huan](https://github.com/huan086).
