From 012843f101d71a8877e837dd84a3dac0c5e389ef Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Wed, 26 Oct 2022 18:01:16 +0200 Subject: [PATCH] fixes --- code/ui/manager/src/provider.ts | 4 ++-- code/ui/manager/src/runtime.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/ui/manager/src/provider.ts b/code/ui/manager/src/provider.ts index b547cf96f40..d54ca6b6601 100644 --- a/code/ui/manager/src/provider.ts +++ b/code/ui/manager/src/provider.ts @@ -1,7 +1,7 @@ -import type { Types } from '@storybook/addons'; +import type { Addon_Types } from '@storybook/types'; export default class Provider { - getElements(_type: Types) { + getElements(_type: Addon_Types) { throw new Error('Provider.getElements() is not implemented!'); } diff --git a/code/ui/manager/src/runtime.ts b/code/ui/manager/src/runtime.ts index e9e86d17de8..c74e4f86072 100644 --- a/code/ui/manager/src/runtime.ts +++ b/code/ui/manager/src/runtime.ts @@ -1,8 +1,8 @@ import global from 'global'; import type { Channel } from '@storybook/channels'; -import { addons, AddonStore, type Types } from '@storybook/addons'; -import type { Addon_Config } from '@storybook/types'; +import { addons, AddonStore } from '@storybook/addons'; +import type { Addon_Types, Addon_Config } from '@storybook/types'; import * as postMessage from '@storybook/channel-postmessage'; import * as webSocket from '@storybook/channel-websocket'; import { CHANNEL_CREATED } from '@storybook/core-events'; @@ -39,7 +39,7 @@ class ReactProvider extends Provider { } } - getElements(type: Types) { + getElements(type: Addon_Types) { return this.addons.getElements(type); }