@jiminp/tooltool
    Preparing search index...

    Module type

    Interfaces

    Err

    A failed result.

    Ok

    A successful result.

    Type Aliases

    JSONArray

    A JSON array.

    JSONObject

    A JSON object.

    JSONScalar

    A JSON scalar: null, boolean, number, or string.

    JSONValue

    Any valid JSON value.

    NestedArray

    Represents an array that can be nested to an arbitrary depth.

    NestedArrayElement

    Represents a single element within a NestedArray.

    Nullable

    Extends a type to also accept null or undefined.

    Nullish

    Represents null or undefined.

    OptionalIfVoid

    Converts a type into a tuple that is optional when T is void or undefined.

    Promisable

    Represents a value that may or may not be wrapped in a Promise.

    RecursivePartial

    Recursively makes all properties of type T optional.

    Result

    A discriminated union representing success or failure.

    Functions

    assertEqualType

    Compile-time assertion that two types are exactly equal.

    isNullish

    Type guard: checks if a value is nullish (null or undefined).

    isResultErr

    Type guard: checks if a result is failed.

    isResultOk

    Type guard: checks if a result is successful.

    resultUnwrap

    Extracts the value from a successful result, or throws the error.

    resultUnwrapOr

    Extracts the value from a successful result, or returns a fallback.

    resultUnwrapOrElse

    Extracts the value from a successful result, or computes a fallback from the error.