chore(deps-dev): upgrade typescript to v4.1.2 and ts-node to v9.1.1

This commit is contained in:
sct
2020-12-08 09:28:53 +00:00
parent a8393707fe
commit 86addbc4dd
5 changed files with 22 additions and 11 deletions

View File

@@ -117,7 +117,7 @@ const Slider: React.FC<SliderProps> = ({
to: {
x: newX,
},
onFrame: (props) => {
onFrame: (props: { x: number }) => {
if (containerRef.current) {
containerRef.current.scrollLeft = props.x;
}
@@ -141,7 +141,7 @@ const Slider: React.FC<SliderProps> = ({
to: {
x: newX,
},
onFrame: (props) => {
onFrame: (props: { x: number }) => {
if (containerRef.current) {
containerRef.current.scrollLeft = props.x;
}