@wopjs/tsur - v0.1.7
    Preparing search index...

    Variable ErrConst

    Err: <E, T = any>(error: E) => Result<T, E> = ...

    Type declaration

      • <E, T = any>(error: E): Result<T, E>
      • Type Parameters

        • E
        • T = any

        Parameters

        • error: E

          An error of type E

        Returns Result<T, E>

        Wrap an error into an Result.

    An error of type E

    Wrap an error into an Result.