onrails
    Preparing search index...

    Variable fromSafePromiseConst

    fromSafePromise: <T, E = never>(promise: PromiseLike<T>) => ResultAsync<T, E> = ResultAsync.fromSafePromise

    Wraps a PromiseLike<T> that never rejects into ResultAsync. Skips the onReject mapper. Use only when the promise is provably safe.

    Type Declaration