Skip to content

Commit 4cc84df

Browse files
committed
Typescript support
1 parent d4537ec commit 4cc84df

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Component that customizes the list and inserts shadow when scrolling exists",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
7+
"types": "dist/index.d.ts",
78
"homepage": "https://react-shadow-scroll.netlify.com/",
89
"author": "André Lins <andrelucas01@hotmail.com> (https://andrelmlins.github.io/)",
910
"scripts": {
@@ -40,7 +41,7 @@
4041
"eslint-plugin-react": "^7.19.0",
4142
"prettier": "^1.19.1",
4243
"react": "^16.13.0",
43-
"react-dependency-scripts": "^1.0.2",
44+
"react-dependency-scripts": "^1.0.6",
4445
"react-dom": "^16.13.0",
4546
"styled-components": "^5.0.1"
4647
},

src/lib/index.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import * as React from 'react';
2+
3+
export interface ReactShadowScrollComponentProps {
4+
scrollColor?: string;
5+
scrollColorHover?: string;
6+
scrollWidth?: number;
7+
isShadow?: boolean;
8+
shadow?: string;
9+
styleSubcontainer?: object;
10+
}
11+
12+
export default class ReactShadowScrollComponent extends React.Component<
13+
ReactShadowScrollComponentProps
14+
> {}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7900,10 +7900,10 @@ raw-body@2.4.0:
79007900
iconv-lite "0.4.24"
79017901
unpipe "1.0.0"
79027902

7903-
react-dependency-scripts@^1.0.2:
7904-
version "1.0.5"
7905-
resolved "https://registry.yarnpkg.com/react-dependency-scripts/-/react-dependency-scripts-1.0.5.tgz#72b771beefb49980844be4c4e89bf3e835b047df"
7906-
integrity sha512-OygHoTS3ZJ5w1nmpGsC2hWSb/F4Eur4oNqSc6anN030pFpLrlLjXsdJEnQU9/NYEkh7xw2FYD/KucfMnHeo7Rg==
7903+
react-dependency-scripts@^1.0.6:
7904+
version "1.0.6"
7905+
resolved "https://registry.yarnpkg.com/react-dependency-scripts/-/react-dependency-scripts-1.0.6.tgz#d56fa4db8e2b4e7c428bd00c8b758dc2122381dd"
7906+
integrity sha512-nQIqrrDyW/GB0/K/FEF3ehQ4AN6qdgEp6+dL6OK/3L66oJevkgKI4pVCdXXjGfa4AJqctmCcnp4FFvYT5bwajw==
79077907
dependencies:
79087908
"@babel/core" "^7.9.6"
79097909
"@babel/plugin-proposal-class-properties" "^7.8.3"

0 commit comments

Comments
 (0)