create module
Type aliases
Functions
Type aliases
CreateFunction
Ƭ CreateFunction: function
Defined in index.ts:6
Function to generate items using item index
Type declaration:
▸ (index
: number): T
Parameters:
Name | Type | Description | |
---|---|---|---|
index |
number | index of newly created item |
Creator
Ƭ Creator: function
Defined in index.ts:16
Creator function (generates certain amount of items)
Type declaration:
▸ (amount
: number): IterableIterator‹T›
Parameters:
Name | Type | Description | |
---|---|---|---|
amount |
number | number of items to create |
Functions
create
▸ create‹T›(createFn
: CreateFunction‹T›): Creator‹T›
Defined in index.ts:29
Function to create sync stream of items
Type parameters:
▪ T
Parameters:
Name | Type | Description | |
---|---|---|---|
createFn |
CreateFunction‹T› | function to generate items |
Returns: Creator‹T›
creator function
▸ create‹T›(createFn
: CreateFunction‹T›, amount
: number): IterableIterator‹T›
Defined in index.ts:37
Function to create sync stream of items
Type parameters:
▪ T
Parameters:
Name | Type | Description | |
---|---|---|---|
createFn |
CreateFunction‹T› | function to generate items | |
amount |
number | number of items to create |
Returns: IterableIterator‹T›
stream of created items