Tagscript

tagscript


Class: IntegerTransformer

Defined in: Transformer/Integer.ts:12

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

Defined in: Transformer/Integer.ts:15

Parameters

int

`${number}` | `${bigint}`

Returns

IntegerTransformer

Methods

transform()

transform(tag): string

Defined in: Transformer/Integer.ts:19

Transforms the given tag.

Parameters

tag

Lexer

The tag that triggered the transformer.

Returns

string

Implementation of

ITransformer.transform

On this page