import appDispatcher from '../dispatcher/appDispatcher' ; import searchActionIDs from './searchActionIDs' ; import { IWebPartContext } from '@microsoft/sp-webpart-base' ; export class SearchActionsStatic { param { string } query param { string } fields public get ( context , query , maxResults , sorting , fields ? ) { appDispatcher . dispatch ( { actionType : searchActionIDs . SEARCH_GET , context : context , query : query , maxResults : maxResults , sorting : sorting , fields : fields } ) ; } } const searchActions = new SearchActionsStatic ( ) ; export default searchActions ;