Skip to main content

Class: FalsyStrictUndefined

An Undefined type that will evaluate to false in a boolean expression and throw an error when iterated, output or when accessing its properties.

Extends

Constructors

new FalsyStrictUndefined()

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

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

FalsyStrictUndefined

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:172


last

get last(): void

Returns

void

Defined in

src/undefined.ts:176


size

get size(): void

Returns

void

Defined in

src/undefined.ts:180

Methods

[iterator]()

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

Returns

Iterator<unknown, any, undefined>

Defined in

src/undefined.ts:161


[liquidDispatchSync]()

[liquidDispatchSync](): void

Returns

void

Defined in

src/undefined.ts:168


[liquidDispatch]()

[liquidDispatch](): Promise<void>

Returns

Promise<void>

Defined in

src/undefined.ts:165


poke()

poke(): void

Prompt the undefined type to throw an error.

Returns

void

Overrides

Undefined.poke

Defined in

src/undefined.ts:153


toString()

toString(): string

Returns

string

Overrides

Undefined.toString

Defined in

src/undefined.ts:149


valueOf()

valueOf(): void

Returns the primitive value of the specified object.

Returns

void

Defined in

src/undefined.ts:157


from()

static from(name): FalsyStrictUndefined

Parameters

name: string

Returns

FalsyStrictUndefined

Defined in

src/undefined.ts:145