Skip to content

Commit

Permalink
Add type declaration for storybookTest in plugin module
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Sep 2, 2024
1 parent 4d5447c commit a0ccf5b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/addons/test/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
import type { storybookTest as storybookTestImport } from './plugin';

// make it work with --isolatedModules
export default {};

// @ts-expect-error - this is a hack to make the module's sub-path augmentable
declare module '@storybook/experimental-addon-test/vite-plugin' {
export const storybookTest: typeof storybookTestImport;
}

0 comments on commit a0ccf5b

Please sign in to comment.