Endo API documentation - v0.2.0 / Exports / @endo/init / AssertionFunctions
Interface: AssertionFunctions
@endo/init.AssertionFunctions
Callable
AssertionFunctions
▸ AssertionFunctions(value
, details?
, errConstructor?
, options?
): asserts value
Parameters
Name | Type |
---|---|
value | any |
details? | Details |
errConstructor? | GenericErrorConstructor |
options? | AssertMakeErrorOptions |
Returns
asserts value
Defined in
Table of contents
Properties
Methods
Properties
typeof
• typeof: AssertTypeof
Defined in
Methods
equal
▸ equal(left
, right
, details?
, errConstructor?
, options?
): void
Parameters
Name | Type |
---|---|
left | any |
right | any |
details? | Details |
errConstructor? | GenericErrorConstructor |
options? | AssertMakeErrorOptions |
Returns
void
Defined in
fail
▸ fail(details?
, errConstructor?
, options?
): never
Parameters
Name | Type |
---|---|
details? | Details |
errConstructor? | GenericErrorConstructor |
options? | AssertMakeErrorOptions |
Returns
never
Defined in
string
▸ string(specimen
, details?
): asserts specimen is string
Parameters
Name | Type |
---|---|
specimen | any |
details? | Details |
Returns
asserts specimen is string