UNPKG

@stackend/api

Version:

JS bindings to api.stackend.com

71 lines 2.16 kB
import * as QNA from './index'; export declare const CHANGE_QNA_PAGE = "CHANGE_QNA_PAGE"; export declare const SET_QNA_SERVER = "SET_QNA_SERVER"; export declare const SET_QNA_GAME = "SET_QNA_GAME"; export declare const SET_QNA_STYLE = "SET_QNA_STYLE"; export declare const CHANGE_FILTER = "CHANGE_FILTER"; export declare const SET_QNA_AVAILABLE_FILTERS = "SET_QNA_AVAILABLE_FILTERS"; export declare const RECEIVE_SEARCH_RESULT = "RECEIVE_SEARCH_RESULT"; export interface QnaState { pageType: string; forumThreadPermalink?: string; } export declare type QnaActions = { type: typeof CHANGE_QNA_PAGE; pageType: string; forumThreadPermalink: string; }; declare const qnaReducer: (state: QnaState | undefined, action: QnaActions) => QnaState; export declare type XcapModuleSettings = { qna: { server: string; game: { id: number; name: string; }; styling: any; }; }; declare const qnaServer: (state: any, action: { type: string; server: string; }) => any; export declare function qnaAvailableFilters(state: { filterGames: Array<any>; filterPlatforms: Array<any>; filterIssues: Array<any>; filterDevices: Array<any>; filterError: any; } | undefined, action: { type: string; filters: any; }): any; declare type QnaSelectedFiltersChangeFilter = { type: 'CHANGE_FILTER'; contentType: QNA.ContentType; filter: { (filterName: string): ''; updateUrl?: boolean; }; }; declare const qnaSelectedFilters: (state: any, action: QnaSelectedFiltersChangeFilter) => any; export declare function qnaSearchResult(state: { entries: Array<any>; relatedObjects: Array<any>; categoryCounts: Array<any>; error: boolean; } | undefined, action: { type: string; result: any; }): any; declare const qnaGame: (state: any, action: { type: string; game: string; }) => any; declare const qnaStyling: (state: any, action: { type: string; style: string; }) => any; export { qnaReducer, qnaServer, qnaSelectedFilters, qnaGame, qnaStyling }; export default qnaReducer; //# sourceMappingURL=qnaReducer.d.ts.map