Skip to content

Commit

Permalink
fix(usePrecision): fix return type (#2676)
Browse files Browse the repository at this point in the history
  • Loading branch information
clemdee committed Jan 25, 2023
1 parent 3047594 commit e331b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/math/usePrecision/index.ts
Expand Up @@ -21,8 +21,8 @@ export function usePrecision(
value: MaybeComputedRef<number>,
digits: MaybeComputedRef<number>,
options?: MaybeComputedRef<UsePrecisionOptions>,
): ComputedRef<number | string> {
return computed<number | string>(() => {
): ComputedRef<number> {
return computed<number>(() => {
const _value = resolveUnref(value)
const _digits = resolveUnref(digits)
const power = 10 ** _digits
Expand Down

0 comments on commit e331b25

Please sign in to comment.