mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
cleanup
This commit is contained in:
parent
d0d07ea9c6
commit
3d7d312b4e
@ -1,3 +1,4 @@
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
const { window: globalWindow } = global;
|
||||
|
4
renderers/html/src/typings.d.ts
vendored
4
renderers/html/src/typings.d.ts
vendored
@ -1,4 +0,0 @@
|
||||
declare module 'global';
|
||||
|
||||
// will be provided by the webpack define plugin
|
||||
declare var NODE_ENV: string | undefined;
|
@ -1,3 +1,4 @@
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
const { window: globalWindow } = global;
|
||||
|
1
renderers/preact/src/typings.d.ts
vendored
1
renderers/preact/src/typings.d.ts
vendored
@ -1 +0,0 @@
|
||||
declare module 'global';
|
@ -1,3 +1,4 @@
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
const { window: globalWindow } = global;
|
||||
|
@ -1,4 +1,6 @@
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
import React, {
|
||||
Component as ReactComponent,
|
||||
FunctionComponent,
|
||||
@ -12,7 +14,7 @@ import type { Root as ReactRoot } from 'react-dom/client';
|
||||
import type { RenderContext } from '@storybook/store';
|
||||
import { ArgsStoryFn } from '@storybook/csf';
|
||||
|
||||
import type { ReactFramework, StoryContext } from '../types';
|
||||
import type { ReactFramework, StoryContext } from './types';
|
||||
|
||||
const { FRAMEWORK_OPTIONS } = global;
|
||||
|
||||
|
1
renderers/react/src/typings.d.ts
vendored
1
renderers/react/src/typings.d.ts
vendored
@ -1,5 +1,4 @@
|
||||
declare module '@storybook/semver';
|
||||
declare module 'global';
|
||||
|
||||
// TODO: Replace, as soon as @types/react-dom 17.0.14 is used
|
||||
// Source: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/fb0f14b7a35cde26ffaa82e7536c062e593e9ae6/types/react-dom/client.d.ts
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
const { window: globalWindow } = global;
|
||||
|
@ -1,5 +1,7 @@
|
||||
/* eslint-disable no-param-reassign */
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
import dedent from 'ts-dedent';
|
||||
import type { RenderContext } from '@storybook/store';
|
||||
import { simulatePageLoad, simulateDOMContentLoaded } from '@storybook/preview-web';
|
||||
|
4
renderers/server/src/typings.d.ts
vendored
4
renderers/server/src/typings.d.ts
vendored
@ -1,4 +0,0 @@
|
||||
declare module 'global';
|
||||
|
||||
// will be provided by the webpack define plugin
|
||||
declare var NODE_ENV: string | undefined;
|
@ -1,3 +1,4 @@
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
const { window: globalWindow } = global;
|
||||
|
@ -1,4 +1,6 @@
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
import type { ArgsStoryFn } from '@storybook/csf';
|
||||
import type { RenderContext } from '@storybook/store';
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
|
1
renderers/svelte/src/typings.d.ts
vendored
1
renderers/svelte/src/typings.d.ts
vendored
@ -1,4 +1,3 @@
|
||||
declare module 'global';
|
||||
declare module '@storybook/svelte/templates/SlotDecorator.svelte';
|
||||
declare module '@storybook/svelte/templates/PreviewRender.svelte';
|
||||
declare module '@storybook/svelte/templates/HOC.svelte';
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
const { window: globalWindow } = global;
|
||||
|
1
renderers/vue/src/typings.d.ts
vendored
1
renderers/vue/src/typings.d.ts
vendored
@ -1 +0,0 @@
|
||||
declare module 'global';
|
@ -1,3 +1,4 @@
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
const { window: globalWindow } = global;
|
||||
|
5
renderers/vue3/src/typings.d.ts
vendored
5
renderers/vue3/src/typings.d.ts
vendored
@ -1,5 +0,0 @@
|
||||
declare module 'global';
|
||||
|
||||
declare module 'vue-loader' {
|
||||
export const VueLoaderPlugin: any
|
||||
}
|
@ -1,5 +1,7 @@
|
||||
/* eslint-disable import/no-unresolved */
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
import { LitElement, html, css } from 'lit-element';
|
||||
|
||||
const { CustomEvent } = global;
|
||||
|
@ -1,5 +1,7 @@
|
||||
/* eslint-disable no-underscore-dangle */
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
import { extractArgTypes } from './custom-elements';
|
||||
import customElementsManifest from './__testfixtures__/custom-elements.json';
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
const { window: globalWindow } = global;
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
const { window, EventSource } = global;
|
||||
|
@ -1,5 +1,7 @@
|
||||
/* eslint-disable no-param-reassign */
|
||||
// @ts-ignore
|
||||
import global from 'global';
|
||||
|
||||
import dedent from 'ts-dedent';
|
||||
import { render } from 'lit-html';
|
||||
// Keep `.js` extension to avoid issue with Webpack (related to export map?)
|
||||
|
Loading…
x
Reference in New Issue
Block a user