Add typescript definition to addon-notes

This commit is contained in:
fabien0102 2017-05-03 12:18:46 +02:00
parent 62bf99a9f6
commit 1cd8aadfe9
2 changed files with 44 additions and 35 deletions

View File

@ -14,6 +14,7 @@
},
"devDependencies": {
"@kadira/storybook": "*",
"@types/react": "^15.0.23",
"git-url-parse": "^6.0.1",
"react": "^15.3.2",
"react-addons-test-utils": "^15.5.1",
@ -31,5 +32,6 @@
"react",
"storybook",
"addon"
]
],
"typings": "./storybook-addon-notes.d.ts"
}

View File

@ -0,0 +1,7 @@
import * as React from 'react';
export interface WithNotesProps extends React.HTMLProps<HTMLDivElement> {
notes?: string;
}
export const WithNotes: React.StatelessComponent<WithNotesProps>;