Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Nov 4, 2022
1 parent 98b4948 commit 2c90d6b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion code/frameworks/angular/src/client/decorators.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions code/renderers/html/src/render.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 1 addition & 0 deletions code/renderers/server/src/render.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/vue/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c90d6b

Please sign in to comment.