Skip to content

Commit a4d316d

Browse files
authored
Merge pull request #2 from olarsson/1.1.7
1.1.7
2 parents 12c1659 + 74ac049 commit a4d316d

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# react-scrollsy v1.1.6 ![](https://img.badgesize.io/olarsson/react-scrollsy/master/dist/react-scrollsy.es.js)
1+
# react-scrollsy v1.1.7 ![](https://img.badgesize.io/olarsson/react-scrollsy/master/dist/react-scrollsy.es.js)
22

33
An ambitious light-weight react module written in TypeScript for tracking scroll progress in a performant way. Developed for use with spring based animation libraries such as react-spring, but can be used with or without any library.
44

@@ -191,6 +191,9 @@ If it still doesnt work then change the import string in the following fashion:
191191

192192
### Whats new
193193

194+
##### Version 1.1.7
195+
- [x] Fixed a type declaration bug
196+
194197
##### Version 1.1.6
195198
- [x] Improved type declarations
196199
- [x] Minor changes to some examples

dist/types.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ type TScrollObject = {
99
start: number;
1010
end: number;
1111
};
12-
export type TChildren = ((props: IScrollDataChildren | IScrollObject) => any) | {
12+
export type TChildren = ((props: IScrollDataChildren | IScrollObject) => unknown) | {
1313
children: React.ReactNode;
14-
};
14+
} | unknown;
1515
export interface IScrollDataBase {
1616
scrollTop: number;
1717
scrollHeight: number;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-scrollsy",
33
"private": false,
4-
"version": "1.1.6",
4+
"version": "1.1.7",
55
"description": "",
66
"license": "MIT",
77
"type": "module",

src/ScrollTrackerDocument.test.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
2-
// @ts-nocheck
31
import { describe, test, expect } from "vitest";
42
import { render } from "@testing-library/react";
53

src/types.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ type TScrollObject = {
1010
end: number;
1111
}
1212

13-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
14-
export type TChildren = ((props: IScrollDataChildren | IScrollObject) => any)
13+
export type TChildren = ((props: IScrollDataChildren | IScrollObject) => unknown)
1514
| {
1615
children: React.ReactNode
17-
}
16+
} | unknown
1817

1918
export interface IScrollDataBase {
2019
scrollTop: number;

0 commit comments

Comments
 (0)