redux-form: add splice method to FieldArrayFieldsProps (#45548)

* redux-form: add splice method to FieldArrayFieldsProps

* redux-form: use FieldValue instead of any for splice value
This commit is contained in:
Kyle Sferrazza 2020-07-06 19:37:44 -04:00 committed by GitHub
parent 3d8da10375
commit cded52eba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,7 @@ export interface FieldArrayFieldsProps<FieldValue> {
push(value: FieldValue): void;
remove(index: number): void;
shift(): FieldValue;
splice(index: number, removeNum: number | null, value: FieldValue): void;
swap(indexA: number, indexB: number): void;
move(from: number, to: number): void;
unshift(value: FieldValue): void;