Skip to content

Commit

Permalink
remove as unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeOberti committed Jun 7, 2024
1 parent 0a277f3 commit 8b8b3ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
22 changes: 11 additions & 11 deletions packages/kbn-expandable-flyout/src/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,17 @@ const registeredPanels = [
];

export const Right: Story<void> = () => {
const state = {
const state: State = {
byId: {
memory: {
right: {
id: 'right',
},
left: {},
preview: [],
left: undefined,
preview: undefined,
},
},
} as unknown as State;
};

return (
<TestProvider state={state}>
Expand All @@ -121,7 +121,7 @@ export const Right: Story<void> = () => {
};

export const Left: Story<void> = () => {
const state = {
const state: State = {
byId: {
memory: {
right: {
Expand All @@ -130,10 +130,10 @@ export const Left: Story<void> = () => {
left: {
id: 'left',
},
preview: [],
preview: undefined,
},
},
} as unknown as State;
};

return (
<TestProvider state={state}>
Expand All @@ -143,7 +143,7 @@ export const Left: Story<void> = () => {
};

export const Preview: Story<void> = () => {
const state = {
const state: State = {
byId: {
memory: {
right: {
Expand All @@ -159,7 +159,7 @@ export const Preview: Story<void> = () => {
],
},
},
} as unknown as State;
};

return (
<TestProvider state={state}>
Expand All @@ -169,7 +169,7 @@ export const Preview: Story<void> = () => {
};

export const MultiplePreviews: Story<void> = () => {
const state = {
const state: State = {
byId: {
memory: {
right: {
Expand All @@ -188,7 +188,7 @@ export const MultiplePreviews: Story<void> = () => {
],
},
},
} as unknown as State;
};

return (
<TestProvider state={state}>
Expand Down
3 changes: 2 additions & 1 deletion packages/kbn-expandable-flyout/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
],
"kbn_references": [
"@kbn/i18n",
"@kbn/kibana-utils-plugin"
"@kbn/kibana-utils-plugin",
"@kbn/i18n-react"
]
}

0 comments on commit 8b8b3ac

Please sign in to comment.