Skip to content

Commit

Permalink
Export namespace definition
Browse files Browse the repository at this point in the history
  • Loading branch information
roderickhsiao committed Sep 11, 2021
1 parent df06543 commit 244555f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ interface IProps {
style?: {};
}

declare class AspectRatio extends React.Component<IProps> {}
export default AspectRatio;
declare class AspectRatioClassComponent extends React.Component<IProps> {}
export default AspectRatioClassComponent;
export const AspectRatio: React.FC<Props> = () => React.ReactElement;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-aspect-ratio",
"version": "1.0.49",
"version": "1.0.50",
"description": "React Component to maintain a consistent width-to-height ratio (aspect ratio), preventing cumulative layout shift.",
"author": "Roderick Hsiao <roderickhsiao@gmail.com>",
"repository": {
Expand Down

0 comments on commit 244555f

Please sign in to comment.