[@storybook/addon-a11y] remove typings provided by package directly (#37358)

This commit is contained in:
Gaëtan Maisse 2019-08-05 20:38:35 +02:00 committed by Nathan Shively-Sanders
parent 467ae78f50
commit d27c04cfc5
5 changed files with 6 additions and 54 deletions

View File

@ -3348,6 +3348,12 @@
"sourceRepoURL": "https://servicestack.net/",
"asOfVersion": "0.1.5"
},
{
"libraryName": "@storybook/addon-a11y",
"typingsPackageName": "storybook__addon-a11y",
"sourceRepoURL": "https://github.com/storybooks/storybook",
"asOfVersion": "5.1.1"
},
{
"libraryName": "@storybook/addon-notes",
"typingsPackageName": "storybook__addon-notes",

View File

@ -1,10 +0,0 @@
// Type definitions for @storybook/addon-a11y 5.0
// Project: https://github.com/storybooks/storybook
// Definitions by: HyunSeob <https://github.com/hyunseob>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { StoryDecorator } from '@storybook/react';
export const checkA11y: StoryDecorator; // Deprecated
export const withA11y: StoryDecorator;

View File

@ -1,11 +0,0 @@
import * as React from 'react';
import { storiesOf } from '@storybook/react';
import { checkA11y } from '@storybook/addon-a11y';
storiesOf('button', module)
.addDecorator(checkA11y)
.add('Accessible', () => (
<button>
Accessible button
</button>
));

View File

@ -1,32 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"jsx": "react",
"typeRoots": [
"../"
],
"paths": {
"@storybook/addon-a11y": [
"storybook__addon-a11y"
],
"@storybook/react": [
"storybook__react"
]
},
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"storybook__addon-a11y-tests.tsx"
]
}

View File

@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }