8000 add docblock · sjfloat/immutable-js@189678f · GitHub
[go: up one dir, main page]

Skip to content

Commit 189678f

Browse files
author
Guy
committed
add docblock
1 parent 193ebd5 commit 189678f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

dist/immutable.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,13 @@ declare module Immutable {
180180
*/
181181
delete(index: number): List<T>;
182182
remove(index: number): List<T>;
183+
184+
/**
185+
* Returns a new List with `value` at `index` with a size 1 more than this
186+
* List. Values at indices above `index` are shifted over by 1.
187+
*
188+
* This is synonymous with `list.splice(index, 0, value)
189+
*/
183190
insert(index: number, value: T): List<T>;
184191

185192
/**

type-definitions/Immutable.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,13 @@ declare module Immutable {
180180
*/
181181
delete(index: number): List<T>;
182182
remove(index: number): List<T>;
183+
184+
/**
185+
* Returns a new List with `value` at `index` with a size 1 more than this
186+
* List. Values at indices above `index` are shifted over by 1.
187+
*
188+
* This is synonymous with `list.splice(index, 0, value)
189+
*/
183190
insert(index: number, value: T): List<T>;
184191

185192
/**

0 commit comments

Comments
 (0)
0