verygoodsecurity / vgs-collect-js

VGS Collect.js script loading module
https://www.verygoodsecurity.com/
7 stars 14 forks source link

Field Mask Function #86

Open emetcalf-leadventure opened 1 month ago

emetcalf-leadventure commented 1 month ago

Expected Behavior

Pass null for maskChar and object for formatChar per documentation.

Current Behavior

TypseScript states maskChar can only be a string and formatChar is a string not an object.

Steps to Reproduce (for bugs)

field.mask('999-99-9999', '*'); or field.mask('XXXXX', null, {'X': '[0-9]'});

Context

Unable to use the mask function.