Tagscript

tagscript


Class: abstract BaseParser

Defined in: Parsers/Base.ts:7

A base class for all transformers.

Extended by

Constructors

new BaseParser()

new BaseParser(acceptedNames, requiredParameter, requiredPayload): BaseParser

Defined in: Parsers/Base.ts:14

Parameters

acceptedNames

string[]

requiredParameter

boolean = false

requiredPayload

boolean = false

Returns

BaseParser

Properties

acceptedNames

protected acceptedNames: string[]

Defined in: Parsers/Base.ts:8


requiredParameter

protected requiredParameter: boolean

Defined in: Parsers/Base.ts:10


requiredPayload

protected requiredPayload: boolean

Defined in: Parsers/Base.ts:12

Methods

toJSON()

toJSON(): object

Defined in: Parsers/Base.ts:29

Returns

object

acceptedNames

acceptedNames: string[]

requiredParameter

requiredParameter: boolean

requiredPayload

requiredPayload: boolean


willAccept()

willAccept(ctx): boolean

Defined in: Parsers/Base.ts:20

Parameters

ctx

Context

Returns

boolean

On this page