Skip to content

Commit

Permalink
chore: add types for react demo (#8517)
Browse files Browse the repository at this point in the history
chore: add types for react demo
  • Loading branch information
ndelangen authored Oct 23, 2019
2 parents 5e6c80b + 2713ba0 commit 013f1fb
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions app/react/demo.d.ts
Original file line number Diff line number Diff line change
@@ -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<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 };

1 comment on commit 013f1fb

@vercel
Copy link

@vercel vercel bot commented on 013f1fb Oct 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.