Class: IntegerTransformer
Integer transformer transforms an integer based on the given parameters.
If no parameters are given, the integer will be returned as is.
if ++
parameter is given, the integer will be incremented.
if --
parameter is given, the integer will be decremented.
Implements
Constructors
new IntegerTransformer()
new IntegerTransformer(int
): IntegerTransformer
Parameters
• int: `${number}` | `${bigint}`
Returns
Defined in
Methods
transform()
transform(tag
): string
Transforms the given tag.
Parameters
• tag: Lexer
The tag that triggered the transformer.
Returns
string