From 82d8ebd2c32ae1c57ce0a14df87aff5b8e1f42fb Mon Sep 17 00:00:00 2001 From: Daniel Del Core Date: Thu, 21 Nov 2019 10:07:48 +1100 Subject: [PATCH] fix(final-form-focus): Pass fromvalues to Decorator (#40521) --- types/final-form-focus/index.d.ts | 6 ++++-- types/final-form-focus/tslint.json | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/types/final-form-focus/index.d.ts b/types/final-form-focus/index.d.ts index ad95827d54..2d9452d0a7 100644 --- a/types/final-form-focus/index.d.ts +++ b/types/final-form-focus/index.d.ts @@ -15,9 +15,11 @@ export type GetInputs = () => FocusableInput[]; export type FindInput = (inputs: FocusableInput[], errors: object) => FocusableInput | undefined; -export default function createDecorator( +// tslint:disable:no-unnecessary-generics +export default function createDecorator( getInputs?: GetInputs, findInput?: FindInput, -): Decorator; +): Decorator; +// tslint:enable:no-unnecessary-generics export function getFormInputs(formName: string): GetInputs; diff --git a/types/final-form-focus/tslint.json b/types/final-form-focus/tslint.json index 3db14f85ea..f93cf8562a 100644 --- a/types/final-form-focus/tslint.json +++ b/types/final-form-focus/tslint.json @@ -1 +1,3 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json" +}