diff --git a/notNeededPackages.json b/notNeededPackages.json index 9feb00ddb9..304d15513c 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -4674,6 +4674,12 @@ "sourceRepoURL": "https://github.com/storybooks/storybook", "asOfVersion": "5.2.1" }, + { + "libraryName": "@storybook/react", + "typingsPackageName": "storybook__react", + "sourceRepoURL": "https://github.com/storybooks/storybook", + "asOfVersion": "5.2.0" + }, { "libraryName": "@storybook/react-native", "typingsPackageName": "storybook__react-native", diff --git a/types/storybook-addon-jsx/index.d.ts b/types/storybook-addon-jsx/index.d.ts index 59b072cf1b..200bc20f20 100644 --- a/types/storybook-addon-jsx/index.d.ts +++ b/types/storybook-addon-jsx/index.d.ts @@ -4,8 +4,8 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.1 -import { ReactNode, ReactElement } from 'react'; -import { StoryApi, DecoratorFunction, Parameters } from '@storybook/addons'; +import { DecoratorFunction, Parameters, StoryApi } from '@storybook/addons'; +import { ReactElement, ReactNode } from 'react'; export type displayNameFunc = (element: ReactElement) => string; @@ -24,14 +24,10 @@ export type AddWithJSXFunc = ( declare module '@storybook/addons' { interface ClientStoryApi { - storiesOf( - kind: string, - module: NodeModule - ): StoryApi & { - addWithJSX: AddWithJSXFunc; - }; - addParameters(parameter: Parameters & { jsx: AddonParameters }): StoryApi; + storiesOf(kind: string, module: NodeModule): StoryApi & + { addWithJSX: AddWithJSXFunc }; addDecorator(decorator: DecoratorFunction): StoryApi; + addParameters(parameter: Parameters & { jsx: AddonParameters }): StoryApi; } } diff --git a/types/storybook-addon-jsx/storybook-addon-jsx-tests.tsx b/types/storybook-addon-jsx/storybook-addon-jsx-tests.tsx index 82d0f3cdca..017c653544 100644 --- a/types/storybook-addon-jsx/storybook-addon-jsx-tests.tsx +++ b/types/storybook-addon-jsx/storybook-addon-jsx-tests.tsx @@ -1,36 +1,34 @@ -import * as React from 'react'; import { addParameters, storiesOf, addDecorator } from '@storybook/react'; +import * as React from 'react'; import { jsxDecorator } from 'storybook-addon-jsx'; -const { Component } = React; - // Test parameters as global options addParameters({ jsx: { skip: 3, enableBeautify: false, - onBeforeRender: str => '', + onBeforeRender: () => '', }, }); // Test `addWithJSX` function storiesOf('Component', module).addWithJSX('simple info', () => ( - Click the "?" mark at top-right to view the info. +
Click the "?" mark at top-right to view the info.
)); storiesOf('Component with options', module).addWithJSX( 'simple info', - () => Click the "?" mark at top-right to view the info., + () =>
Click the "?" mark at top-right to view the info.
, { skip: 2, enableBeautify: false, - onBeforeRender: str => '', + onBeforeRender: () => '', } ); storiesOf('Component with partial options', module).addWithJSX( 'simple info', - () => Click the "?" mark at top-right to view the info., + () =>
Click the "?" mark at top-right to view the info.
, { skip: 2, } @@ -39,8 +37,8 @@ storiesOf('Component with partial options', module).addWithJSX( // Test `jsxDecorator` decorator storiesOf('test', module) .addDecorator(jsxDecorator) - .add('Paris', () => Hello) - .add('Orleans', () => Hello); + .add('Paris', () =>
Hello
) + .add('Orleans', () =>
Hello
); // Test with global `jsxDecorator` decorator addDecorator(jsxDecorator); diff --git a/types/storybook-addon-jsx/tsconfig.json b/types/storybook-addon-jsx/tsconfig.json index dd6d692054..8c43a610f8 100644 --- a/types/storybook-addon-jsx/tsconfig.json +++ b/types/storybook-addon-jsx/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6", - "dom" + "dom", + "es6" ], "noImplicitAny": true, "noImplicitThis": true, @@ -11,9 +11,7 @@ "strictFunctionTypes": true, "baseUrl": "../", "jsx": "react", - "typeRoots": [ - "../" - ], + "typeRoots": ["../"], "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, diff --git a/types/storybook-react-router/index.d.ts b/types/storybook-react-router/index.d.ts index ace9ddb8f9..7e1d3d3363 100644 --- a/types/storybook-react-router/index.d.ts +++ b/types/storybook-react-router/index.d.ts @@ -2,18 +2,22 @@ // Project: https://github.com/gvaldambrini/storybook-router // Definitions by: Alex Lomia // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 +// TypeScript Version: 3.1 -import * as React from 'react'; +import { DecoratorFunction, StoryApi } from '@storybook/addons'; +import { StoryFnReactReturnType } from '@storybook/react/dist/client/preview/types'; +import { ComponentType } from 'react'; import { MemoryRouterProps } from 'react-router'; -import { Story, StoryDecorator } from '@storybook/react'; -export const StoryRouter: React.ComponentType<{ - story: Story; +export const StoryRouter: ComponentType<{ + story: StoryApi; links: object; routerProps: MemoryRouterProps; }>; -declare function storyRouterDecorator(links?: object, routerProps?: MemoryRouterProps): StoryDecorator; +declare function storyRouterDecorator( + links?: object, + routerProps?: MemoryRouterProps +): DecoratorFunction; export default storyRouterDecorator; diff --git a/types/storybook-react-router/package.json b/types/storybook-react-router/package.json new file mode 100644 index 0000000000..0c9225e65d --- /dev/null +++ b/types/storybook-react-router/package.json @@ -0,0 +1,7 @@ +{ + "private": true, + "dependencies": { + "@storybook/addons": "^5.2.0", + "@storybook/react": "^5.2.0" + } +} diff --git a/types/storybook-react-router/tsconfig.json b/types/storybook-react-router/tsconfig.json index 0b849082bc..f4197081bc 100644 --- a/types/storybook-react-router/tsconfig.json +++ b/types/storybook-react-router/tsconfig.json @@ -1,30 +1,24 @@ { - "compilerOptions": { - "module": "commonjs", - "lib": [ - "dom", - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "jsx": "react", - "typeRoots": [ - "../" - ], - "paths": { - "@storybook/react": [ - "storybook__react" - ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "storybook-react-router-tests.tsx" - ] + "compilerOptions": { + "module": "commonjs", + "lib": [ + "dom", + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "jsx": "react", + "typeRoots": ["../"], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true + }, + "files": [ + "index.d.ts", + "storybook-react-router-tests.tsx" + ] } diff --git a/types/storybook-readme/components/Marked.d.ts b/types/storybook-readme/components/Marked.d.ts index 62d5e78ec8..1727ae2861 100644 --- a/types/storybook-readme/components/Marked.d.ts +++ b/types/storybook-readme/components/Marked.d.ts @@ -1,3 +1 @@ -import * as React from "react"; - export default function Marked(props: { md: string }): JSX.Element; diff --git a/types/storybook-readme/index.d.ts b/types/storybook-readme/index.d.ts index 15ff254fe9..c545dea7c9 100644 --- a/types/storybook-readme/index.d.ts +++ b/types/storybook-readme/index.d.ts @@ -2,19 +2,19 @@ // Project: https://github.com/tuchk4/storybook-readme // Definitions by: Taeheon Kim // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 +// TypeScript Version: 3.1 + +import { DecoratorFunction, StoryFn } from '@storybook/addons'; +import { StoryFnReactReturnType } from '@storybook/react/dist/client/preview/types'; +import { ReactNode } from 'react'; // Shared Types -export type Renderable = React.ComponentType | JSX.Element; -export type RenderFunction = () => Renderable | Renderable[]; +export type RenderFunction = StoryFn; export type Readme = string | string[]; -export type DecoratorPattern = ( - story: RenderFunction, - context: { kind: string; story: string } -) => Renderable | null; +export type DecoratorPattern = DecoratorFunction; -export type HOCPattern = (story: RenderFunction) => Renderable | null; +export type HOCPattern = DecoratorFunction; export type MakeDecoratorResult = (...args: any[]) => any; @@ -23,12 +23,12 @@ export const addReadme: MakeDecoratorResult; export function addFooter(md: string): void; export function addHeader(md: string): void; export interface ConfigureReadmeConfig { - header?: string; - footer?: string; - StoryPreview?: (props: { children: React.ReactNode }) => React.ReactNode; - DocPreview?: (props: { children: React.ReactNode }) => React.ReactNode; - HeaderPreview?: (props: { children: React.ReactNode }) => React.ReactNode; - FooterPreview?: (props: { children: React.ReactNode }) => React.ReactNode; + header?: string; + footer?: string; + StoryPreview?: (props: { children: ReactNode }) => ReactNode; + DocPreview?: (props: { children: ReactNode }) => ReactNode; + HeaderPreview?: (props: { children: ReactNode }) => ReactNode; + FooterPreview?: (props: { children: ReactNode }) => ReactNode; } export function configureReadme(config: ConfigureReadmeConfig): void; diff --git a/types/storybook-readme/package.json b/types/storybook-readme/package.json new file mode 100644 index 0000000000..0c9225e65d --- /dev/null +++ b/types/storybook-readme/package.json @@ -0,0 +1,7 @@ +{ + "private": true, + "dependencies": { + "@storybook/addons": "^5.2.0", + "@storybook/react": "^5.2.0" + } +} diff --git a/types/storybook-readme/storybook-readme-tests.tsx b/types/storybook-readme/storybook-readme-tests.tsx index 4613da7d82..2b5a077990 100644 --- a/types/storybook-readme/storybook-readme-tests.tsx +++ b/types/storybook-readme/storybook-readme-tests.tsx @@ -1,9 +1,9 @@ -import * as React from "react"; import { storiesOf, addDecorator } from "@storybook/react"; +import React, { Fragment } from "react"; import { withDocs, withReadme, doc, addReadme, configureReadme, addFooter, addHeader } from "storybook-readme"; import Marked from "storybook-readme/components/Marked"; -import registerWithPanelTitle from "storybook-readme/registerWithPanelTitle"; import { addReadme as addHtmlReadme } from "storybook-readme/html"; +import registerWithPanelTitle from "storybook-readme/registerWithPanelTitle"; // Possibly any .md files or strings const DocExample1 = ` @@ -87,7 +87,7 @@ storiesOf("Doc", module).add("StoryName Here", doc(DocExample1)); // Marked usage. storiesOf("Custom Layout", module).add("StoryName Here", () => { return ( - +
your react component
@@ -100,6 +100,6 @@ storiesOf("Custom Layout", module).add("StoryName Here", () => {
your react component
-
+ ); }); diff --git a/types/storybook-readme/tsconfig.json b/types/storybook-readme/tsconfig.json index 0d204f2554..c3bfbb9cc5 100644 --- a/types/storybook-readme/tsconfig.json +++ b/types/storybook-readme/tsconfig.json @@ -1,26 +1,24 @@ { - "compilerOptions": { - "module": "commonjs", - "lib": ["dom", "es6"], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "jsx": "react", - "typeRoots": ["../"], - "paths": { - "@storybook/react": ["storybook__react"] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "components/Marked.d.ts", - "registerWithPanelTitle/index.d.ts", - "html/index.d.ts", - "storybook-readme-tests.tsx" - ] + "compilerOptions": { + "module": "commonjs", + "lib": ["dom", "es6"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "jsx": "react", + "typeRoots": ["../"], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true + }, + "files": [ + "index.d.ts", + "components/Marked.d.ts", + "registerWithPanelTitle/index.d.ts", + "html/index.d.ts", + "storybook-readme-tests.tsx" + ] } diff --git a/types/storybook__addon-info/index.d.ts b/types/storybook__addon-info/index.d.ts index 845feff65e..0bb16071e0 100644 --- a/types/storybook__addon-info/index.d.ts +++ b/types/storybook__addon-info/index.d.ts @@ -6,7 +6,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.1 -import { ComponentType, ReactElement, ReactPortal } from 'react'; +import { ComponentType, ReactElement } from 'react'; import { DecoratorFunction, StoryFn, StoryContext, Parameters, StoryApi } from '@storybook/addons'; export interface WrapStoryProps { @@ -33,7 +33,9 @@ export interface Options { propTables?: Array> | false; propTablesExclude?: Array>; styles?: object; - components?: { [key: string]: ComponentType }; + components?: { + [key: string]: ComponentType + }; /** * @deprecated "marksyConf" option has been renamed to "components" */ @@ -46,7 +48,10 @@ export interface Options { excludedPropTypes?: string[]; } -export function withInfo(story: StoryFn, context: StoryContext): ReturnType>; +export function withInfo( + story: StoryFn, + context: StoryContext +): ReturnType>; // Legacy, but supported /** diff --git a/types/storybook__addon-info/tsconfig.json b/types/storybook__addon-info/tsconfig.json index 7fa9a9917a..0bedf4b675 100644 --- a/types/storybook__addon-info/tsconfig.json +++ b/types/storybook__addon-info/tsconfig.json @@ -1,7 +1,10 @@ { "compilerOptions": { "module": "commonjs", - "lib": ["dom", "es6"], + "lib": [ + "dom", + "es6" + ], "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, @@ -10,12 +13,17 @@ "jsx": "react", "typeRoots": ["../"], "paths": { - "@storybook/addon-info": ["storybook__addon-info"] + "@storybook/addon-info": [ + "storybook__addon-info" + ] }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, "esModuleInterop": true }, - "files": ["index.d.ts", "storybook__addon-info-tests.tsx"] + "files": [ + "index.d.ts", + "storybook__addon-info-tests.tsx" + ] } diff --git a/types/storybook__addon-storyshots-puppeteer/storybook__addon-storyshots-puppeteer-tests.ts b/types/storybook__addon-storyshots-puppeteer/storybook__addon-storyshots-puppeteer-tests.ts index e71bea1477..4f0d5469c4 100644 --- a/types/storybook__addon-storyshots-puppeteer/storybook__addon-storyshots-puppeteer-tests.ts +++ b/types/storybook__addon-storyshots-puppeteer/storybook__addon-storyshots-puppeteer-tests.ts @@ -10,13 +10,13 @@ initStoryshots({ test: imageSnapshot({ storybookUrl: 'http://localhost:9002', chromeExecutablePath: '/usr/local/bin/chrome', - getMatchOptions: context => ({ + getMatchOptions: () => ({ failureThreshold: 0.2, failureThresholdType: 'percent', }), - getScreenshotOptions: ({ context, url }) => ({ path: '/foo' }), - beforeScreenshot: (page, context) => page.setViewport({ width: 300, height: 100 }), - getGotoOptions: ({ context, url }) => ({ timeout: 10 }), + getScreenshotOptions: () => ({ path: '/foo' }), + beforeScreenshot: page => page.setViewport({ width: 300, height: 100 }), + getGotoOptions: () => ({ timeout: 10 }), customizePage: page => page.setViewport({ width: 300, height: 100 }), getCustomBrowser: () => connect({ browserWSEndpoint: 'ws://yourUrl' }), }), diff --git a/types/storybook__addon-storyshots-puppeteer/tsconfig.json b/types/storybook__addon-storyshots-puppeteer/tsconfig.json index 619b9bdec0..d9b6f6a40d 100644 --- a/types/storybook__addon-storyshots-puppeteer/tsconfig.json +++ b/types/storybook__addon-storyshots-puppeteer/tsconfig.json @@ -1,31 +1,25 @@ { "compilerOptions": { "module": "commonjs", - "lib": [ - "es6" - ], + "lib": ["es6"], "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", - "typeRoots": [ - "../" - ], + "typeRoots": ["../"], "paths": { - "@storybook/addon-storyshots-puppeteer": [ - "storybook__addon-storyshots-puppeteer" - ], - "@storybook/react": [ - "storybook__react" - ], "@storybook/addon-storyshots": [ "storybook__addon-storyshots" + ], + "@storybook/addon-storyshots-puppeteer": [ + "storybook__addon-storyshots-puppeteer" ] }, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/storybook__addon-storyshots/index.d.ts b/types/storybook__addon-storyshots/index.d.ts index 36dd7cb9ff..b8646387db 100644 --- a/types/storybook__addon-storyshots/index.d.ts +++ b/types/storybook__addon-storyshots/index.d.ts @@ -5,12 +5,10 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.1 -import * as React from 'react'; -import { StoryObject } from '@storybook/react'; -import { Page, NavigationOptions, ScreenshotOptions } from "puppeteer"; +import { IStorybookStory } from '@storybook/react/dist/client/preview/types'; export type Test = (options: { - story: StoryObject; + story: IStorybookStory; context: StoryContext; renderShallowTree: RenderTree; renderTree: RenderTree; @@ -18,9 +16,9 @@ export type Test = (options: { }) => undefined | void | Promise; export type RenderTree = ( - story: StoryObject, + story: IStorybookStory, context: StoryContext, - options?: SnapshotOptions + options?: SnapshotOptions, ) => undefined | void | Promise; export interface SnapshotOptionsObject { @@ -28,7 +26,7 @@ export interface SnapshotOptionsObject { } export interface SnapshotOptionsFn { - (story: StoryObject): SnapshotOptionsObject; + (story: IStorybookStory): SnapshotOptionsObject; } export type SnapshotOptions = SnapshotOptionsObject | SnapshotOptionsFn; @@ -68,3 +66,5 @@ export interface InitOptions { serializer?: (rendered: Rendered) => any; integrityOptions?: {}; } + +export {}; diff --git a/types/storybook__addon-storyshots/package.json b/types/storybook__addon-storyshots/package.json new file mode 100644 index 0000000000..59d1bb7a55 --- /dev/null +++ b/types/storybook__addon-storyshots/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "@storybook/react": "^5.2.0" + } +} diff --git a/types/storybook__addon-storyshots/tsconfig.json b/types/storybook__addon-storyshots/tsconfig.json index 651fb4482b..ddb344e695 100644 --- a/types/storybook__addon-storyshots/tsconfig.json +++ b/types/storybook__addon-storyshots/tsconfig.json @@ -2,6 +2,7 @@ "compilerOptions": { "module": "commonjs", "lib": [ + "dom", "es6" ], "noImplicitAny": true, @@ -9,20 +10,16 @@ "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", - "typeRoots": [ - "../" - ], + "typeRoots": ["../"], "paths": { "@storybook/addon-storyshots": [ "storybook__addon-storyshots" - ], - "@storybook/react": [ - "storybook__react" ] }, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/storybook__react/index.d.ts b/types/storybook__react/index.d.ts deleted file mode 100644 index 41de7498b3..0000000000 --- a/types/storybook__react/index.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -// Type definitions for @storybook/react 4.0 -// Project: https://github.com/storybookjs/storybook, https://github.com/storybookjs/storybook/tree/master/app/react -// Definitions by: Joscha Feth -// Anton Izmailov -// Dan Dean -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 - -/// - -import * as React from 'react'; - -export type Renderable = React.ComponentType | JSX.Element; -export type RenderFunction = () => Renderable | Renderable[]; - -export interface DecoratorParameters { - [key: string]: any; -} -export type StoryDecorator = (story: RenderFunction, context: { kind: string, story: string }) => Renderable | null; - -export interface Story { - readonly kind: string; - add(storyName: string, callback: RenderFunction, parameters?: DecoratorParameters): this; - addDecorator(decorator: StoryDecorator): this; - addParameters(parameters: DecoratorParameters): this; -} - -export function addDecorator(decorator: StoryDecorator): void; -export function addParameters(parameters: DecoratorParameters): void; -export function clearDecorators(): void; -export function configure(fn: () => void, module: NodeModule): void; -export function setAddon(addon: object): void; -export function storiesOf(name: string, module: NodeModule): Story; -export function storiesOf(name: string, module: NodeModule): Story & T; -export function forceReRender(): void; - -export interface StoryObject { - name: string; - render: RenderFunction; -} - -export interface StoryBucket { - kind: string; - stories: StoryObject[]; -} - -export function getStorybook(): StoryBucket[]; diff --git a/types/storybook__react/storybook__react-tests.tsx b/types/storybook__react/storybook__react-tests.tsx deleted file mode 100644 index bf7094c580..0000000000 --- a/types/storybook__react/storybook__react-tests.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import * as React from 'react'; -import { storiesOf, setAddon, addDecorator, addParameters, configure, getStorybook, RenderFunction, Story, forceReRender, DecoratorParameters, clearDecorators } from '@storybook/react'; - -const Decorator = (story: RenderFunction) =>
{story()}
; -const parameters: DecoratorParameters = { parameter: 'foo' }; - -forceReRender(); - -storiesOf('Welcome', module) - // local addDecorator - .addDecorator(Decorator) - .add('to Storybook', () =>
) - .add('to Storybook as Array', () => [
,
]) - .add('and a story with additional parameters', () =>
, parameters); - -// global addDecorator -addDecorator(Decorator); -addParameters(parameters); -clearDecorators(); - -// setAddon -interface AnyAddon { - addWithSideEffect(this: Story & T, storyName: string, storyFn: RenderFunction): Story & T; -} -const AnyAddon: AnyAddon = { - addWithSideEffect(this: Story & T, storyName: string, storyFn: RenderFunction): Story & T { - console.log(this.kind === 'withAnyAddon'); - return this.add(storyName, storyFn); - } -}; -setAddon(AnyAddon); -storiesOf('withAnyAddon', module) - .addWithSideEffect('custom story', () =>
) - .addWithSideEffect('more', () =>
) - .add('another story', () =>
) - .add('to Storybook as Array', () => [
,
]) - .add('and a story with additional parameters', () =>
, parameters) - .addWithSideEffect('even more', () =>
); - -// configure -configure(() => undefined, module); - -// getStorybook -getStorybook().forEach(({ kind, stories }) => stories.forEach(({ name, render }) => render())); diff --git a/types/storybook__react/tsconfig.json b/types/storybook__react/tsconfig.json deleted file mode 100644 index 906319ce4c..0000000000 --- a/types/storybook__react/tsconfig.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "dom", - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "jsx": "react", - "typeRoots": [ - "../" - ], - "paths": { - "@storybook/react": [ - "storybook__react" - ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "storybook__react-tests.tsx" - ] -} \ No newline at end of file diff --git a/types/storybook__react/tslint.json b/types/storybook__react/tslint.json deleted file mode 100644 index 71ee04c4e1..0000000000 --- a/types/storybook__react/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "no-unnecessary-generics": false - } -}