use-mask-input 3.5.1 → 3.6.0

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.cts CHANGED
@@ -575,11 +575,11 @@ interface CommandObject {
575
575
 
576
576
  type Mask = 'datetime' | 'email' | 'numeric' | 'currency' | 'decimal' | 'integer' | 'percentage' | 'url' | 'ip' | 'mac' | 'ssn' | 'brl-currency' | 'cpf' | 'cnpj' | (string & {}) | (string[] & {}) | null;
577
577
  type Options = Options$1;
578
- type Input = HTMLInputElement | HTMLTextAreaElement | HTMLElement | null;
578
+ type Input = HTMLInputElement | HTMLTextAreaElement | HTMLElement;
579
579
 
580
580
  declare function withHookFormMask(register: UseFormRegisterReturn, mask: Mask, options?: Options): UseFormRegisterReturn;
581
581
 
582
- declare function withMask(mask: Mask, options?: Options): (input: Input) => Input;
582
+ declare function withMask(mask: Mask, options?: Options): (input: Input | null) => void;
583
583
 
584
584
  declare function useHookFormMask<T extends FieldValues, D extends RegisterOptions>(registerFn: UseFormRegister<T>): (fieldName: Path<T>, mask: Mask, options?: (D & Options) | Options | D) => UseFormRegisterReturn<Path<T>>;
585
585
 
package/dist/index.d.ts CHANGED
@@ -575,11 +575,11 @@ interface CommandObject {
575
575
 
576
576
  type Mask = 'datetime' | 'email' | 'numeric' | 'currency' | 'decimal' | 'integer' | 'percentage' | 'url' | 'ip' | 'mac' | 'ssn' | 'brl-currency' | 'cpf' | 'cnpj' | (string & {}) | (string[] & {}) | null;
577
577
  type Options = Options$1;
578
- type Input = HTMLInputElement | HTMLTextAreaElement | HTMLElement | null;
578
+ type Input = HTMLInputElement | HTMLTextAreaElement | HTMLElement;
579
579
 
580
580
  declare function withHookFormMask(register: UseFormRegisterReturn, mask: Mask, options?: Options): UseFormRegisterReturn;
581
581
 
582
- declare function withMask(mask: Mask, options?: Options): (input: Input) => Input;
582
+ declare function withMask(mask: Mask, options?: Options): (input: Input | null) => void;
583
583
 
584
584
  declare function useHookFormMask<T extends FieldValues, D extends RegisterOptions>(registerFn: UseFormRegister<T>): (fieldName: Path<T>, mask: Mask, options?: (D & Options) | Options | D) => UseFormRegisterReturn<Path<T>>;
585
585