Update Optional argument of push method

This commit is contained in:
mrsekut 2019-03-12 16:22:22 +09:00
parent e95a4f0f1f
commit 425ddf9e29
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@
// Mohamed Shaaban <https://github.com/mshaaban088>
// Ethan Setnik <https://github.com/esetnik>
// Walter Barbagallo <https://github.com/bwlt>
// Kota Marusue <https://github.com/mrsekut>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
import {

View File

@ -40,7 +40,7 @@ export interface FieldArrayFieldsProps<FieldValue> {
length: number;
map<R>(callback: FieldIterate<FieldValue, R>): R[];
pop(): FieldValue;
push(value: FieldValue): void;
push(value?: FieldValue): void;
remove(index: number): void;
shift(): FieldValue;
swap(indexA: number, indexB: number): void;