1.1.7 • Published 7 months ago

@types/final-form-focus v1.1.7

Weekly downloads
6,564
License
MIT
Repository
github
Last release
7 months ago

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.

1.1.7

7 months ago

1.1.6

7 months ago

1.1.5

8 months ago

1.1.4

9 months ago

1.1.3

1 year ago

1.1.2

2 years ago

1.1.1

5 years ago

1.1.0

5 years ago