You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make a validation function for search option provided APIs.
exportnamespaceTestValidator{/** * Valiate search options. * * Test a pagination API supporting search options. * * @param title Title of error message when searching is invalid * @returns Currying function * * @example https://github.com/samchon/nestia-template/blob/master/src/test/features/api/bbs/test_api_bbs_article_index_search.ts */exportconstsearch=(title: string)=>/** * @param getter A pagination API function to be called */<EntityextendsIEntity<any>,Request>(getter: (input: Request)=>Promise<Entity[]>,)=>/** * @param total Total entity records for comparison * @param sampleCount Sampling count. Default is 1 */(total: Entity[],sampleCount: number=1)=>/** * @param props Search properties */async<Valuesextendsany[]>(props: ISearchProps<Entity,Values,Request>,): Promise<void>;exportinterfaceISearchProps<EntityextendsIEntity<any>,Valuesextendsany[],Request,>{fields: string[];values(entity: Entity): Values;filter(entity: Entity,values: Values): boolean;request(values: Values): Request;}}
The text was updated successfully, but these errors were encountered:
Make a validation function for search option provided APIs.
The text was updated successfully, but these errors were encountered: