More fixes

This commit is contained in:
Tom Coleman 2022-11-04 14:59:41 +11:00
parent 98b4948f8f
commit 2c90d6bffb
4 changed files with 5 additions and 2 deletions

View File

@ -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<AngularFramework> = {
componentId: 'unspecified',
kind: 'unspecified',
title: 'unspecified',

View File

@ -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';

View File

@ -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';

View File

@ -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