Skip to content

Commit

Permalink
Merge pull request #28745 from storybookjs/norbert/cpc-fix-types-usage
Browse files Browse the repository at this point in the history
CPC: Fix type usage in renderers
(cherry picked from commit 54b4af3)
  • Loading branch information
ndelangen authored and storybook-bot committed Jul 31, 2024
1 parent ddbdc17 commit 3333ee1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/renderers/react/src/mount.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type StoryContext, type ReactRenderer } from './public-types';
import type { BaseAnnotations } from '@storybook/types';
import type { BaseAnnotations } from 'storybook/internal/types';

export const mount: BaseAnnotations<ReactRenderer>['mount'] =
(context: StoryContext) => async (ui) => {
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/svelte/src/mount.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type StoryContext, type SvelteRenderer } from './public-types';
import { type BaseAnnotations } from '@storybook/types';
import { type BaseAnnotations } from 'storybook/internal/types';

export const mount: BaseAnnotations<SvelteRenderer>['mount'] = (context: StoryContext) => {
return async (Component, options) => {
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/vue3/src/mount.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type StoryContext, type VueRenderer } from './public-types';
import { h } from 'vue';
import { type BaseAnnotations } from '@storybook/types';
import { type BaseAnnotations } from 'storybook/internal/types';

export const mount: BaseAnnotations<VueRenderer>['mount'] = (context: StoryContext) => {
return async (Component, options) => {
Expand Down

0 comments on commit 3333ee1

Please sign in to comment.