Skip to main content

Class: abstract Undefined

The base class for objects wrapping undefined variables found in Liquid templates.

Extended by

Constructors

new Undefined()

new Undefined(name, object?, hint?): Undefined

Create a new Undefined object.

Parameters

name: string

The name of the undefined variable.

object?: unknown

The target object which does not have a property with the given name.

hint?: string

Optionally override the default "undefined" message.

Returns

Undefined

Defined in

src/undefined.ts:17

Properties

hint?

readonly optional hint: string

Optionally override the default "undefined" message.

Defined in

src/undefined.ts:20


name

readonly name: string

The name of the undefined variable.

Defined in

src/undefined.ts:18


object?

readonly optional object: unknown

The target object which does not have a property with the given name.

Defined in

src/undefined.ts:19

Methods

poke()

poke(): void

Prompt the undefined type to throw an error.

Returns

void

Defined in

src/undefined.ts:30


toString()

toString(): string

Returns

string

Defined in

src/undefined.ts:23