diff --git a/packages/addon-notes/package.json b/packages/addon-notes/package.json index ee2ea2adada6..4f43fe80ca4e 100644 --- a/packages/addon-notes/package.json +++ b/packages/addon-notes/package.json @@ -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" +} diff --git a/packages/addon-notes/storybook-addon-notes.d.ts b/packages/addon-notes/storybook-addon-notes.d.ts new file mode 100644 index 000000000000..fdfdaa918083 --- /dev/null +++ b/packages/addon-notes/storybook-addon-notes.d.ts @@ -0,0 +1,7 @@ +import * as React from 'react'; + +export interface WithNotesProps extends React.HTMLProps { + notes?: string; +} + +export const WithNotes: React.StatelessComponent;