onrails
    Preparing search index...

    await yields CompatResult so .isOk() / .value / .match() work without .resolve().

    Type Parameters

    • T
    • E

    Implements

    Index

    Methods

    • Attaches callbacks for the resolution and/or rejection of the Promise.

      Type Parameters

      Parameters

      • Optionalonfulfilled: ((value: CompatResult<T, E>) => R1 | PromiseLike<R1>) | null

        The callback to execute when the Promise is resolved.

      • Optionalonrejected: ((reason: unknown) => R2 | PromiseLike<R2>) | null

        The callback to execute when the Promise is rejected.

      Returns Promise<R1 | R2>

      A Promise for the completion of which ever callback is executed.