Skip to main content

Class: StrictUndefined

An Undefined type that throws an error whenever it appears in a Liquid expression.

Extends

Constructors

new StrictUndefined()

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

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

StrictUndefined

Inherited from

Undefined.constructor

Defined in

src/undefined.ts:17

Properties

hint?

readonly optional hint: string

Optionally override the default "undefined" message.

Inherited from

Undefined.hint

Defined in

src/undefined.ts:20


name

readonly name: string

The name of the undefined variable.

Inherited from

Undefined.name

Defined in

src/undefined.ts:18


object?

readonly optional object: unknown

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

Inherited from

Undefined.object

Defined in

src/undefined.ts:19

Accessors

first

get first(): void

Returns

void

Defined in

src/undefined.ts:71


last

get last(): void

Returns

void

Defined in

src/undefined.ts:75


size

get size(): void

Returns

void

Defined in

src/undefined.ts:79

Methods

[iterator]()

[iterator](): Iterator<unknown, any, undefined>

Returns

Iterator<unknown, any, undefined>

Defined in

src/undefined.ts:56


[liquidDispatchSync]()

[liquidDispatchSync](): void

Returns

void

Defined in

src/undefined.ts:67


[liquidDispatch]()

[liquidDispatch](): Promise<void>

Returns

Promise<void>

Defined in

src/undefined.ts:64


[toLiquidPrimitive]()

[toLiquidPrimitive](): void

Returns

void

Defined in

src/undefined.ts:60


poke()

poke(): void

Prompt the undefined type to throw an error.

Returns

void

Overrides

Undefined.poke

Defined in

src/undefined.ts:48


toString()

toString(): string

Returns

string

Overrides

Undefined.toString

Defined in

src/undefined.ts:44


valueOf()

valueOf(): void

Returns the primitive value of the specified object.

Returns

void

Defined in

src/undefined.ts:52


from()

static from(name): StrictUndefined

Parameters

name: string

Returns

StrictUndefined

Defined in

src/undefined.ts:40