TypeDoc API
TagScript
classes
Functiontransformer

Class: FunctionTransformer

Transformers are used to transform a value based on the tag at runtime.

Implements

Constructors

constructor

new FunctionTransformer(fn)

Parameters

NameType
fnTransformerFunction

Properties

fn

Private Readonly fn: TransformerFunction

Methods

transform

transform(tag): string

Transforms the given tag.

Parameters

NameTypeDescription
tagLexerThe tag that triggered the transformer.

Returns

string

Implementation of

ITransformer.transform