@stackend/api
Version:
JS bindings to api.stackend.com
22 lines • 742 B
TypeScript
import * as search from './index';
export declare const UPDATE_SEARCH_STRING = "UPDATE_SEARCH_STRING";
export declare const UPDATE_SELECTED_TYPE = "UPDATE_SELECTED_TYPE";
declare type UpdateSearchString = {
type: typeof UPDATE_SEARCH_STRING;
q: string;
p?: number;
};
declare type UpdateSelectedType = {
type: typeof UPDATE_SELECTED_TYPE;
selectedType: search.SearchAbleType;
p?: number;
};
export declare type SearchActions = UpdateSearchString | UpdateSelectedType;
export declare type SearchState = {
q: string;
p: number;
filter: string;
};
export default function searchReducer(state: SearchState | undefined, action: SearchActions): SearchState;
export {};
//# sourceMappingURL=searchReducer.d.ts.map