Skip to content

Commit 9383b03

Browse files
committed
Move Storybook config to TypeScript
1 parent baf130d commit 9383b03

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

extensions/ql-vscode/.storybook/main.js

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import type { StorybookConfig } from '@storybook/core-common';
2+
3+
const config: StorybookConfig = {
4+
stories: [
5+
'../src/**/*.stories.mdx',
6+
'../src/**/*.stories.@(js|jsx|ts|tsx)'
7+
],
8+
addons: [
9+
'@storybook/addon-links',
10+
'@storybook/addon-essentials',
11+
'@storybook/addon-interactions'
12+
],
13+
framework: '@storybook/react',
14+
core: {
15+
builder: '@storybook/builder-webpack5'
16+
}
17+
};
18+
19+
module.exports = config;
File renamed without changes.

extensions/ql-vscode/.storybook/preview.js renamed to extensions/ql-vscode/.storybook/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ export const parameters = {
3232
}
3333
};
3434

35-
window.acquireVsCodeApi = () => ({
35+
(window as any).acquireVsCodeApi = () => ({
3636
postMessage: action('post-vscode-message')
3737
});

0 commit comments

Comments
 (0)