diff --git a/app/react/demo.d.ts b/app/react/demo.d.ts new file mode 100644 index 000000000000..3d530b3b4005 --- /dev/null +++ b/app/react/demo.d.ts @@ -0,0 +1,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) => void; + }): JSX.Element; + displayName: string; + propTypes: { + children: PropTypes.Validator; + onClick: PropTypes.Requireable<(...args: any[]) => any>; + }; + defaultProps: { + onClick: () => void; + }; +}; + +export { Welcome, Button };