Type alias WithId<T>

WithId<T>: T & {
    _id: IdOf<T>;
}

Includes an _id in the given type, even if it's not declared in the type

Type Parameters

  • T

Type declaration