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

@ -1,35 +1,37 @@
{
"name": "@kadira/storybook-addon-notes",
"version": "1.0.1",
"description": "Write notes for your Storybook stories.",
"repository": {
"type": "git",
"url": "https://github.com/kadirahq/storybook-addon-notes.git"
},
"license": "MIT",
"scripts": {
"prepublish": "node ../../scripts/prepublish.js",
"storybook": "start-storybook -p 9010",
"publish-storybook": "bash .scripts/publish_storybook.sh"
},
"devDependencies": {
"@kadira/storybook": "*",
"git-url-parse": "^6.0.1",
"react": "^15.3.2",
"react-addons-test-utils": "^15.5.1",
"react-dom": "^15.3.2"
},
"peerDependencies": {
"react": "*",
"@kadira/storybook-addons": "*"
},
"dependencies": {
"babel-runtime": "^6.5.0"
},
"main": "dist/index.js",
"keywords": [
"react",
"storybook",
"addon"
]
}
{
"name": "@kadira/storybook-addon-notes",
"version": "1.0.1",
"description": "Write notes for your Storybook stories.",
"repository": {
"type": "git",
"url": "https://github.com/kadirahq/storybook-addon-notes.git"
},
"license": "MIT",
"scripts": {
"prepublish": "node ../../scripts/prepublish.js",
"storybook": "start-storybook -p 9010",
"publish-storybook": "bash .scripts/publish_storybook.sh"
},
"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",
"react-dom": "^15.3.2"
},
"peerDependencies": {
"react": "*",
"@kadira/storybook-addons": "*"
},
"dependencies": {
"babel-runtime": "^6.5.0"
},
"main": "dist/index.js",
"keywords": [
"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>;