Skip to content

Commit

Permalink
Fix types and build process (#851)
Browse files Browse the repository at this point in the history
* Fix startOnMount types

* Rollback build process
  • Loading branch information
mmarkelov authored Mar 18, 2024
1 parent f200a13 commit 6ca0dc4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@
"url": "https://github.com/glennreyes/react-countup/issues"
},
"homepage": "https://react-countup.now.sh",
"main": "build/index.js",
"exports": {
"import": "./build/index.mjs",
"require": "./build/index.js",
"types": "./build/index.d.ts"
},
"main": "build",
"files": [
"build"
"build/index.js",
"build/index.d.ts"
],
"typings": "build/index.d.ts",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export interface CountUpInstanceProps extends CountUpOptions {
}

export interface CommonProps extends CountUpInstanceProps {
startOnMount?: boolean;
delay?: number | null;
}

Expand Down
1 change: 0 additions & 1 deletion src/useCountUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { useEventCallback } from './helpers/useEventCallback';
import { CountUp as CountUpJs } from 'countup.js';

export interface UseCountUpProps extends CommonProps, CallbackProps {
startOnMount?: boolean;
ref: string | React.RefObject<HTMLElement>;
enableReinitialize?: boolean;
}
Expand Down

0 comments on commit 6ca0dc4

Please sign in to comment.