Skip to content

Commit

Permalink
Merge pull request #2 from olarsson/1.1.7
Browse files Browse the repository at this point in the history
1.1.7
  • Loading branch information
olarsson authored Nov 21, 2023
2 parents 12c1659 + 74ac049 commit a4d316d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# react-scrollsy v1.1.6 ![](https://img.badgesize.io/olarsson/react-scrollsy/master/dist/react-scrollsy.es.js)
# react-scrollsy v1.1.7 ![](https://img.badgesize.io/olarsson/react-scrollsy/master/dist/react-scrollsy.es.js)

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.

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

### Whats new

##### Version 1.1.7
- [x] Fixed a type declaration bug

##### Version 1.1.6
- [x] Improved type declarations
- [x] Minor changes to some examples
Expand Down
4 changes: 2 additions & 2 deletions dist/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ type TScrollObject = {
start: number;
end: number;
};
export type TChildren = ((props: IScrollDataChildren | IScrollObject) => any) | {
export type TChildren = ((props: IScrollDataChildren | IScrollObject) => unknown) | {
children: React.ReactNode;
};
} | unknown;
export interface IScrollDataBase {
scrollTop: number;
scrollHeight: number;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-scrollsy",
"private": false,
"version": "1.1.6",
"version": "1.1.7",
"description": "",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 0 additions & 2 deletions src/ScrollTrackerDocument.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import { describe, test, expect } from "vitest";
import { render } from "@testing-library/react";

Expand Down
5 changes: 2 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ type TScrollObject = {
end: number;
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type TChildren = ((props: IScrollDataChildren | IScrollObject) => any)
export type TChildren = ((props: IScrollDataChildren | IScrollObject) => unknown)
| {
children: React.ReactNode
}
} | unknown

export interface IScrollDataBase {
scrollTop: number;
Expand Down

0 comments on commit a4d316d

Please sign in to comment.