Skip to content

Commit

Permalink
#711 - useEasing default value to undefined fix (#776)
Browse files Browse the repository at this point in the history
Co-authored-by: Amal Mathew <122610766+amal-qb@users.noreply.github.com>
  • Loading branch information
shabaa3 and amal-qb authored Mar 7, 2023
1 parent 9a2e00a commit f1a5445
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export interface CountUpInstanceProps extends CountUpOptions {
decimals?: number;
end: number;
start?: number;
useEasing?: boolean;
}

export interface CommonProps extends CountUpInstanceProps {
Expand Down
1 change: 1 addition & 0 deletions src/useCountUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const DEFAULTS = {
start: 0,
startOnMount: true,
enableReinitialize: true,
useEasing: true,
};

const useCountUp = (props: useCountUpProps): CountUpApi => {
Expand Down

0 comments on commit f1a5445

Please sign in to comment.