Skip to content

Endo API documentation - v0.2.0 / Exports / @endo/lockdown / AssertionFunctions

Interface: AssertionFunctions

@endo/lockdown.AssertionFunctions

Callable

AssertionFunctions

AssertionFunctions(value, details?, errConstructor?, options?): asserts value

Parameters

NameType
valueany
details?Details
errConstructor?GenericErrorConstructor
options?AssertMakeErrorOptions

Returns

asserts value

Defined in

ses/types.d.ts:190

Table of contents

Properties

Methods

Properties

typeof

typeof: AssertTypeof

Defined in

ses/types.d.ts:196

Methods

equal

equal(left, right, details?, errConstructor?, options?): void

Parameters

NameType
leftany
rightany
details?Details
errConstructor?GenericErrorConstructor
options?AssertMakeErrorOptions

Returns

void

Defined in

ses/types.d.ts:197


fail

fail(details?, errConstructor?, options?): never

Parameters

NameType
details?Details
errConstructor?GenericErrorConstructor
options?AssertMakeErrorOptions

Returns

never

Defined in

ses/types.d.ts:205


string

string(specimen, details?): asserts specimen is string

Parameters

NameType
specimenany
details?Details

Returns

asserts specimen is string

Defined in

ses/types.d.ts:204