@types/final-form-focus
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

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

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

Credits

These definitions were written by Jeow Li Huan.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/final-form-focus

Weekly Downloads

19,556

Version

1.1.7

License

MIT

Unpacked Size

3.96 kB

Total Files

5

Last publish

Collaborators

  • types