- search(
title: string,
): <Entity extends IEntity<any>, Request>(
getter: (input: Request) => Promise<Entity[]>,
) => (
total: Entity[],
sampleCount?: number,
) => <Values extends any[]>(
props: ISearchProps<Entity, Values, Request>,
) => Promise<void> Returns <Entity extends IEntity<any>, Request>(
getter: (input: Request) => Promise<Entity[]>,
) => (
total: Entity[],
sampleCount?: number,
) => <Values extends any[]>(
props: ISearchProps<Entity, Values, Request>,
) => Promise<void>
Currying function
- <Entity extends IEntity<any>, Request>(
getter: (input: Request) => Promise<Entity[]>,
): (
total: Entity[],
sampleCount?: number,
) => <Values extends any[]>(
props: ISearchProps<Entity, Values, Request>,
) => Promise<void> Type Parameters
- Entity extends IEntity<any>
- Request
Returns (
total: Entity[],
sampleCount?: number,
) => <Values extends any[]>(
props: ISearchProps<Entity, Values, Request>,
) => Promise<void>
Valiate search options.
Test a pagination API supporting search options.
Example