From 2c90d6bffb9295ccb643ca8ea42af8f3b0efdbae Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Fri, 4 Nov 2022 14:59:41 +1100 Subject: [PATCH] More fixes --- code/frameworks/angular/src/client/decorators.test.ts | 3 ++- code/renderers/html/src/render.ts | 1 + code/renderers/server/src/render.ts | 1 + code/renderers/vue/src/render.ts | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/code/frameworks/angular/src/client/decorators.test.ts b/code/frameworks/angular/src/client/decorators.test.ts index 0825712e8a0c..3f7651051f2a 100644 --- a/code/frameworks/angular/src/client/decorators.test.ts +++ b/code/frameworks/angular/src/client/decorators.test.ts @@ -2,8 +2,9 @@ import { Addon_StoryContext } from '@storybook/types'; import { Component } from '@angular/core'; import { moduleMetadata } from './decorators'; +import { AngularFramework } from './types'; -const defaultContext: Addon_StoryContext = { +const defaultContext: Addon_StoryContext = { componentId: 'unspecified', kind: 'unspecified', title: 'unspecified', diff --git a/code/renderers/html/src/render.ts b/code/renderers/html/src/render.ts index 309673510149..05a2d9e9721b 100644 --- a/code/renderers/html/src/render.ts +++ b/code/renderers/html/src/render.ts @@ -1,4 +1,5 @@ /* eslint-disable no-param-reassign */ +// @ts-expect-error (Converted from ts-ignore) import global from 'global'; import { dedent } from 'ts-dedent'; diff --git a/code/renderers/server/src/render.ts b/code/renderers/server/src/render.ts index 8c2b95bd1c6b..cb1049dc3b82 100644 --- a/code/renderers/server/src/render.ts +++ b/code/renderers/server/src/render.ts @@ -1,4 +1,5 @@ /* eslint-disable no-param-reassign */ +// @ts-expect-error (Converted from ts-ignore) import global from 'global'; import { dedent } from 'ts-dedent'; diff --git a/code/renderers/vue/src/render.ts b/code/renderers/vue/src/render.ts index 072484d63e0a..25d5708409fe 100644 --- a/code/renderers/vue/src/render.ts +++ b/code/renderers/vue/src/render.ts @@ -98,7 +98,7 @@ export function renderToCanvas( Vue.config.errorHandler = showException; const element = storyFn(); - let mountTarget: VueFramework['canvasElement'] | null; + let mountTarget: Element | VueFramework['canvasElement'] | null; // Vue2 mount always replaces the mount target with Vue-generated DOM. // https://v2.vuejs.org/v2/api/#el:~:text=replaced%20with%20Vue%2Dgenerated%20DOM