use-mask-input 3.3.7 → 3.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -583,7 +583,7 @@ type Input = HTMLInputElement | HTMLTextAreaElement | HTMLElement | HTMLInputEle
583
583
 
584
584
  declare const withHookFormMask: (register: UseFormRegisterReturn, mask: Mask, options?: Options) => UseFormRegisterReturn;
585
585
 
586
- declare const withMask: (mask: Mask, options?: Options) => (input: Input) => Input;
586
+ declare const withMask: (mask: Mask, options?: Options) => (input: Input) => void;
587
587
 
588
588
  declare function useHookFormMask<T extends FieldValues, D extends RegisterOptions>(registerFn: UseFormRegister<T>): (fieldName: Path<T>, mask: Mask, options?: Options & D) => {
589
589
  ref: RefCallback<HTMLElement>;
package/dist/index.js CHANGED
@@ -3751,14 +3751,13 @@ const withHookFormMask = (register, mask, options) => {
3751
3751
 
3752
3752
  const withMask = (mask, options) => (input) => {
3753
3753
  if (isServer)
3754
- return input;
3754
+ return;
3755
3755
  if (mask === null)
3756
- return input;
3756
+ return;
3757
3757
  const maskInput = inputmask(getMaskOptions(mask, options));
3758
3758
  if (input) {
3759
3759
  maskInput.mask(input);
3760
3760
  }
3761
- return input;
3762
3761
  };
3763
3762
 
3764
3763
  function useHookFormMask(registerFn) {