Tagscript

Class: abstract BaseParser

A base class for all transformers.

Extended by

Constructors

new BaseParser()

new BaseParser(acceptedNames, requiredParameter, requiredPayload): BaseParser

Parameters

acceptedNames: string[]

requiredParameter: boolean = false

requiredPayload: boolean = false

Returns

BaseParser

Defined in

Parsers/Base.ts:14

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

Returns

object

acceptedNames

acceptedNames: string[]

requiredParameter

requiredParameter: boolean

requiredPayload

requiredPayload: boolean

Defined in

Parsers/Base.ts:29


willAccept()

willAccept(ctx): boolean

Parameters

ctx: Context

Returns

boolean

Defined in

Parsers/Base.ts:20

On this page