Skip to content

Commit

Permalink
fix type in story file
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Nov 8, 2021
1 parent 89713bf commit 9861131
Showing 1 changed file with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,20 @@ const sampleAPMIndices = { transaction: 'apm-*' } as ApmIndicesConfig;
const withCore = makeDecorator({
name: 'withCore',
parameterName: 'core',
wrapper: (storyFn, context, { options }) => {
wrapper: (storyFn, context, { options: { theme, ...options } }) => {
unregisterAll();

const KibanaReactContext = createKibanaReactContext({
application: { getUrlForApp: () => '' },
chrome: { docTitle: { change: () => {} } },
chrome: {
docTitle: {
change: () => {},
},
},
uiSettings: { get: () => [] },
usageCollection: { reportUiCounter: () => {} },
usageCollection: {
reportUiCounter: () => {},
},
} as unknown as Partial<CoreStart>);

return (
Expand All @@ -66,7 +72,12 @@ const withCore = makeDecorator({
plugins: {
data: {
query: {
timefilter: { timefilter: { setTime: () => {}, getTime: () => ({}) } },
timefilter: {
timefilter: {
setTime: () => {},
getTime: () => ({}),
},
},
},
},
} as unknown as ObservabilityPublicPluginsStart,
Expand Down

0 comments on commit 9861131

Please sign in to comment.