mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-21 05:02:39 +08:00
Add typescript definition to addon-notes
This commit is contained in:
parent
62bf99a9f6
commit
1cd8aadfe9
@ -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"
|
||||
}
|
||||
|
7
packages/addon-notes/storybook-addon-notes.d.ts
vendored
Normal file
7
packages/addon-notes/storybook-addon-notes.d.ts
vendored
Normal 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>;
|
Loading…
x
Reference in New Issue
Block a user