From 5d53d9f5ac1b96ebe227c378745338761a59125f Mon Sep 17 00:00:00 2001 From: Vadim Kudriavtcev Date: Wed, 16 Jan 2019 01:44:02 +0300 Subject: [PATCH] add type --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d4cfa42..7fd6707 100644 --- a/README.md +++ b/README.md @@ -71,15 +71,15 @@ import { ReduxArrayHelper } from '../utils/ReduxHelper' | Method | First Arguments | Second Arguments | Third Arguments | Description | | ------ | ------ | ------ | ------ | ------ | -| append | list | payload | - | Insert to the end of the list | -| prepend | list | payload | - | Insert to the end of the list | -| insert | list | payload | index | Insert to position of the list | -| update | list | payload | (optional) comparator | Update item of list by id in the payload | -| updateByIndex | list | payload | index (int) | Update item of list by payload | -| delete | list | payload | (optional) comparator | Delete item from the list by id in the payload | +| append | list | payload (obj) | - | Insert to the end of the list | +| prepend | list | payload (obj) | - | Insert to the end of the list | +| insert | list | payload (obj) | index | Insert to position of the list | +| update | list | payload (obj) | (optional) comparator | Update item of list by id in the payload | +| updateByIndex | list | payload (obj) | index (int) | Update item of list by payload | +| delete | list | payload (obj) | (optional) comparator | Delete item from the list by id in the payload | | deleteById | list | payload (id) | (optional) comparator | Delete item from the list using payload | | deleteByIndex | list | index (int) | - | Delete item from the list using payload | -| find | list | payload | (optional) comparator | Return the item from the list by id in the payload | +| find | list | payload (obj) | (optional) comparator | Return the item from the list by id in the payload | | findById | list | payload (id) | (optional) comparator | Return the item from the list by payload| | findIndexById | list | payload (id) | (optional) comparator | Return index of item by payload |