UNPKG

@stackend/api

Version:

JS bindings to api.stackend.com

35 lines 1.1 kB
import { Thunk } from '../api'; import { Order, OrderBy, SearchAbleType } from './index'; import { SearchActions } from './searchReducer'; export interface UpdateSearchString { q: string; p?: number; } export declare function updateSearchString({ q, p }: UpdateSearchString): SearchActions; export interface UpdateSelectedType { request: any; type: SearchAbleType; updateUrl?: boolean; p?: number; } export declare function updateSelectedType({ type, p, updateUrl }: UpdateSelectedType): Thunk<void>; export interface Search { reduxStorageUrl: string; searchParams: { q: any; tag?: any; selectedFilters?: any; type?: Array<SearchAbleType>; gameId?: number; order?: Order; orderBy?: OrderBy; pageSize?: number; trendingBoost?: boolean; categoryId?: number; qnaParams?: any; p?: number; }; singleTypeSearch?: boolean; } export declare function search({ reduxStorageUrl, searchParams, singleTypeSearch }: Search): Thunk<void>; //# sourceMappingURL=searchActions.d.ts.map