mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
Add typescript definition to addon-notes
This commit is contained in:
parent
62bf99a9f6
commit
1cd8aadfe9
@ -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"
|
||||
}
|
||||
|
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