Skip to content

Commit

Permalink
Updates readme methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Fábio Henriques committed May 29, 2018
1 parent 66d918d commit cca30ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ If you want, we expose the `MaskService`. You can use it:
* static toMask(type, value, settings): mask a value.
_ `type` (String, required): the type of the mask (`cpf`, `datetime`, etc...)
_ `value` (String, required): the value to be masked \* `settings` (Object, optional): if the mask type accepts options, pass it in the settings parameter
* static toRawValue(type, maskedValue, settings): get the raw value of a masked value.
_ `type` (String, required): the type of the mask (`cpf`, `datetime`, etc...)
_ `maskedValue` (String, required): the masked value to be converted in raw value \* `settings` (Object, optional): if the mask type accepts options, pass it in the settings parameter
* static isValid(type, value, settings): validate if the mask and the value match.
_ `type` (String, required): the type of the mask (`cpf`, `datetime`, etc...)
_ `value` (String, required): the value to be masked \* `settings` (Object, optional): if the mask type accepts options, pass it in the settings parameter
Expand Down

0 comments on commit cca30ff

Please sign in to comment.