forked from storybookjs/storybook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.d.ts
32 lines (29 loc) · 780 Bytes
/
demo.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React from 'react';
import PropTypes from 'prop-types';
declare const Welcome: {
({ showApp }: {
showApp: () => void;
}): JSX.Element;
displayName: string;
propTypes: {
showApp: PropTypes.Requireable<(...args: any[]) => any>;
};
defaultProps: {
showApp: any;
};
};
declare const Button: {
({ children, onClick, }: {
children: React.ReactNode;
onClick: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
}): JSX.Element;
displayName: string;
propTypes: {
children: PropTypes.Validator<PropTypes.ReactNodeLike>;
onClick: PropTypes.Requireable<(...args: any[]) => any>;
};
defaultProps: {
onClick: () => void;
};
};
export { Welcome, Button };