Skip to content

Commit

Permalink
fix vue types
Browse files Browse the repository at this point in the history
  • Loading branch information
uNmAnNeR committed Feb 8, 2024
1 parent bca9a7f commit d8b68c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vue-imask/src/composable.ts
Expand Up @@ -33,7 +33,7 @@ function useIMask<
unmasked: Ref<InputMask<Opts>['unmaskedValue']>,
typed: Ref<InputMask<Opts>['typedValue']>,
} {
const _props = isRef(props) ? props : ref(props);
const _props = (isRef(props) ? props : ref(props)) as Ref<Opts>;
const el: Ref<MaskElement | undefined> = ref();
const mask: Ref<InputMask<Opts> | undefined> = ref();
const masked: Ref<InputMask<Opts>['value']> = ref('');
Expand Down Expand Up @@ -123,7 +123,7 @@ function useIMask<
if (!mask.value) {
_initMask();
} else {
mask.value.updateOptions($props);
mask.value.updateOptions($props as any);
}
}
});
Expand Down

0 comments on commit d8b68c6

Please sign in to comment.