Type alias MaybeId<T>

MaybeId<T>: NoId<T> & {
    _id?: IdOf<T>;
}

Allows the given type to include an _id or not, even if it's not declared in the type

Type Parameters

  • T

Type declaration