1.1.7 • Published 7 months ago
@types/final-form-focus v1.1.7
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
// Type definitions for final-form-focus 1.1
// Project: https://github.com/final-form/final-form-focus
// Definitions by: Jeow Li Huan <https://github.com/huan086>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
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;
// tslint:disable:no-unnecessary-generics
export default function createDecorator<FormValues = object, InitialFormValues = object>(
getInputs?: GetInputs,
findInput?: FindInput,
): Decorator<FormValues, InitialFormValues>;
// tslint:enable:no-unnecessary-generics
export function getFormInputs(formName: string): GetInputs;
Additional Details
- Last updated: Mon, 10 Jan 2022 21:31:40 GMT
- Dependencies: @types/final-form
- Global values: none
Credits
These definitions were written by Jeow Li Huan.