Skip to content

Commit

Permalink
Add type entry
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-rhsiao committed Oct 14, 2020
1 parent bca40a7 commit 179d60d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
9 changes: 5 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import * as React from 'react';

interface IProps {
ratio: number | string;
children: React.ReactElement;
style?: {};
className?: string;
children: React.ReactElement;
ratio: number | string;
style?: {};
}

declare class AspectRatio extends React.Component<IProps>{}
declare class AspectRatio extends React.Component<IProps> {}
export default AspectRatio;
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-aspect-ratio",
"version": "1.0.43",
"version": "1.0.44",
"description": "React Aspect Ratio Component",
"author": "Roderick Hsiao <roderickhsiao@gmail.com>",
"repository": {
Expand Down Expand Up @@ -62,8 +62,9 @@
"peerDependencies": {
"react": "^0.14.7 || ^15.0.0 || ^16.0.0"
},
"module": "dist/es/index.js",
"main": "dist/index.js",
"module": "dist/es/index.js",
"types": "index.d.ts",
"sideEffects": [
"*.css"
],
Expand Down

0 comments on commit 179d60d

Please sign in to comment.