Skip to main content

Class: StringLiteral

Extends

Constructors

new StringLiteral()

new StringLiteral(value): StringLiteral

Parameters

value: string | Markup

Returns

StringLiteral

Inherited from

Literal.constructor

Defined in

src/expression.ts:150

Properties

value

readonly value: string | Markup

Inherited from

Literal.value

Defined in

src/expression.ts:150

Methods

children()

children(): Expression[]

Returns

Expression[]

Inherited from

Literal.children

Defined in

src/expression.ts:170


equals()

equals(other): boolean

Parameters

other: unknown

Returns

boolean

Overrides

Literal.equals

Defined in

src/expression.ts:195


evaluate()

evaluate(context): Promise<string | Markup>

Parameters

context: RenderContext

Returns

Promise<string | Markup>

Overrides

Literal.evaluate

Defined in

src/expression.ts:185


evaluateSync()

evaluateSync(context): string | Markup

Parameters

context: RenderContext

Returns

string | Markup

Overrides

Literal.evaluateSync

Defined in

src/expression.ts:189


toString()

toString(): string

Returns

string

Inherited from

Literal.toString

Defined in

src/expression.ts:166