mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
fix(final-form-focus): Pass fromvalues to Decorator (#40521)
This commit is contained in:
committed by
Sheetal Nandi
parent
170f1475a0
commit
82d8ebd2c3
Vendored
+4
-2
@@ -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<FormValues = object>(
|
||||
getInputs?: GetInputs,
|
||||
findInput?: FindInput,
|
||||
): Decorator;
|
||||
): Decorator<FormValues>;
|
||||
// tslint:enable:no-unnecessary-generics
|
||||
|
||||
export function getFormInputs(formName: string): GetInputs;
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user