• Turns a null-returning promise into a promise returning undefined.

    Some libraries we use return promises or promise-like objects that can resolve to null. This function converts them to undefined.

    Type Parameters

    • T

    Parameters

    • value: PromiseLike<null | T>

    Returns Promise<T | undefined>