UNPKG
@ryuuji3/react-mask-hook
Version:
latest (1.0.1)
1.0.1
1.0.0
A simple masking library as a react hook
github.com/ryuuji3/react-mask-hook
ryuuji3/react-hooks
@ryuuji3/react-mask-hook
/
lib
/
functions
/
fitInputValueIntoMask.d.ts
10 lines
(9 loc)
•
251 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import { Mask }
from
'../hooks/useMask'
;
/** * Return partial mask with patterns replaced by values. * *
@param
value *
@param
mask */
declare
function
fitInputValueIntoMask
(
value:
string
, mask: Mask
):
Mask
; export
default
fitInputValueIntoMask;