diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/overview/overview_logic.ts b/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/overview/overview_logic.ts index e2bc9adbc39ec..2c30b54fb5e29 100644 --- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/overview/overview_logic.ts +++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/overview/overview_logic.ts @@ -9,7 +9,7 @@ import { HttpSetup } from 'src/core/public'; import { kea, MakeLogicType } from 'kea'; import { IAccount, IOrganization, IUser } from '../../types'; -import { IFlashMessagesProps, TKeaReducers } from '../../../shared/types'; +import { IFlashMessagesProps } from '../../../shared/types'; import { IFeedActivity } from './recent_activity'; @@ -31,10 +31,10 @@ export interface IOverviewServerData { } export interface IOverviewActions { - setServerData(serverData: IOverviewServerData): void; - setFlashMessages(flashMessages: IFlashMessagesProps): void; - setHasErrorConnecting(hasErrorConnecting: boolean): void; - initializeOverview({ http }: { http: HttpSetup }): void; + setServerData(serverData: IOverviewServerData): IOverviewServerData; + setFlashMessages(flashMessages: IFlashMessagesProps): { flashMessages: IFlashMessagesProps }; + setHasErrorConnecting(hasErrorConnecting: boolean): { hasErrorConnecting: boolean }; + initializeOverview({ http }: { http: HttpSetup }): { http: HttpSetup }; } export interface IOverviewValues extends IOverviewServerData { @@ -156,7 +156,7 @@ export const OverviewLogic = kea ({ - initializeOverview: async ({ http }: { http: HttpSetup }) => { + initializeOverview: async ({ http }) => { try { const response = await http.get('/api/workplace_search/overview'); actions.setServerData(response); diff --git a/yarn.lock b/yarn.lock index 91458473ede43..f37d26b90f182 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19522,10 +19522,10 @@ kdbush@^3.0.0: resolved "https://registry.yarnpkg.com/kdbush/-/kdbush-3.0.0.tgz#f8484794d47004cc2d85ed3a79353dbe0abc2bf0" integrity sha512-hRkd6/XW4HTsA9vjVpY9tuXJYLSlelnkTmVFu4M9/7MIYQtFcHpbugAU7UbOfjOiVSVYl2fqgBuJ32JUmRo5Ew== -kea@2.2.0-beta.8: - version "2.2.0-beta.8" - resolved "https://registry.yarnpkg.com/kea/-/kea-2.2.0-beta.8.tgz#c44232dff2143fe3edea89c0eeae871588a5525d" - integrity sha512-CiIjRsBhzc3a387owOD9fsTL20ACvdiUr+lgWwBEYkDl69Sogm5+IuihYQYidrbkmatGrCXtbD7Ly9fPaStbqA== +kea@2.2.0-rc.2: + version "2.2.0-rc.2" + resolved "https://registry.yarnpkg.com/kea/-/kea-2.2.0-rc.2.tgz#1c04110dca4b4c475fb0b0f40a5bfbe609058d40" + integrity sha512-N1ytphLYPeUmrqpal78mdZextJkO2Gzj8LQI3bahM/NagYSX8biAYS6FhJeGJfaySChkBf2zbL2hvfrScKap3A== kew@~0.1.7: version "0.1.7"