Home Manual Reference Source Repository
Manual » Overview

Packages

Package Description Modules
@jali-ms/core framework-level utilities @jali-ms/core
@jali-ms/core/iterables
@jali-ms/core/type-guards
@jali-ms/util language-level utilities @jali-ms/util
@jali-ms/util/errors
@jali-ms/util/iterables
@jali-ms/util/type-guards

Package @jali-ms/core

Back to Packages

Provides framework-level utilities such as notification messages and structured errors.

Package @jali-ms/util

Back to Packages

Provides language-level utilities such as parameter verification and common Iterable functions.

Export Description
Errors Re-export of @jali-ms/util/errors
Iterables Re-export of @jali-ms/util/iterables
TypeGuards Re-export of @jali-ms/util/type-guards

Module @jali-ms/util/errors

Back to Package @jali-ms/util

Export Description
ArgumentEmptyStringError Represents that an argument erroneously has an empty string value.
ArgumentError Represents that an argument has violated a requirement.
ArgumentFalseError Represents that an argument erroneously has a value of false.
ArgumentFalsyError Represents that an argument erroneously has a falsy value.
ArgumentNanError Represents that an argument erroneously has a value of NaN.
ArgumentNullError Represents that an argument erroneously has a value of null.
ArgumentTypeError Represents that an argument has an invalid type or an object with the incorrect structure.
ArgumentUndefinedError Represents that an argument erroneously is 'undefined'.
ArgumentWhitespaceStringError Represents that a string argument erroneously has only whitespace characters.
ArgumentZeroError Represents that an argument erroneously has a value of zero.
verifyArgument Throws an error if the specified argument value does not pass the specified test.
verifyBoolean Throws an error if the specified argument is not strictly a boolean value.
verifyDefined Throws an error if the specified argument is undefined.
verifyFunction Throws an error if the specified argument is not strictly a function expression.
verifyIterable Throws an error if the specified argument does not support iteration.
verifyNonEmpty Throws an error if the specified argument value is not a non-empty string.
verifyNonZero Throws an error if the specified argument value is not a non-zero number.
verifyNotNull Throws an error if the specified argument value is undefined or null.
verifyNotWhitespace Throws an error if the specified argument is not a string with non whitespace characters.
verifyNumber Throws an error if the specified argument value is not a number or has a value of NaN.
verifyObject Throws an error if the specified argument value is not an Object.
verifyString Throws an error if the specified argument value is not a string.
verifyTrue Throws an error if the specified argument value is not a boolean with the value 'true'.
verifyTruthy Throws an error if the specified argument value is not truthy.

Module @jali-ms/util/iterables

Back to Package @jali-ms/util

Export Description
asArray Converts an argument that could either be a value of a type or a sequence of that type to
an array of that type.
asIterable Converts an argument that could either be a value of a type or a sequence of that type to a
sequence of that type.
concat Concatenates a sequence of a type with zero or more other sequences of that type.
every Returns a value indicating whether every element fulfills the specified test.
filter Returns a subset of the sequence of those elements that pass the specified test.
find Returns the first value matching the specified test or undefined if no match was found.
includes Returns a value indicating whether a match for the specified test was found.
map Returns a sequence of elements that are the result of calling the specified converter
function on each element.
reduce Aggregates a sequence to a single computed element value.
slice Returns a segment of the original sequence.
some Returns a value indicating whether any of the elements of a sequence pass the specified test.
toMap Converts a sequence to a Map using the specified key selector function.

Module @jali-ms/util/type-guards

Back to Package @jali-ms/util

Export Description
isError
isIterable
makeIsIterable