getNextFunction

Function

Create a .next() function for a type

  • getNextFunction(request: ISearchOptions, nextStart: number, total: number, fn: function(r: any) : Promise<ISearchResponse<>>) : function() : Promise<ISearchResponse<>>

Parameters

Parameter Type Default Notes
request Required ISearchOptions
nextStart Required number
total Required number
fn Required function(r: any) : Promise<ISearchResponse<>>

Returns

function() : Promise<ISearchResponse<>>

Function defined in common/src/search/utils.ts:408