diff --git a/apis/ql.d.ts b/apis/ql.d.ts index c60aa5a4..4ee24ee0 100644 --- a/apis/ql.d.ts +++ b/apis/ql.d.ts @@ -152,17 +152,17 @@ type SELECT_one = // calling with class ( (entityType: T, projection?: Projection>>) - => Awaitable, SELECT_one>, SingularInstanceType | null>) + => Awaitable, SELECT_one>, SingularInstanceType | null | undefined>) & ( (entityType: T, primaryKey: PK, projection?: Projection>>) - => Awaitable, SELECT_one>, SingularInstanceType | null>) + => Awaitable, SELECT_one>, SingularInstanceType | null | undefined>) & ((entity: EntityDescription, primaryKey?: PK, projection?: Projection) => SELECT<_TODO, SELECT_one>) - & ( (entity: T[], projection?: Projection) => Awaitable, T | null>) - & ( (entity: T[], primaryKey: PK, projection?: Projection) => Awaitable, T | null>) - & ( (entity: { new(): T }, projection?: Projection) => Awaitable, T | null>) - & ( (entity: { new(): T }, primaryKey: PK, projection?: Projection) => Awaitable, T | null>) + & ( (entity: T[], projection?: Projection) => Awaitable, T | null | undefined>) + & ( (entity: T[], primaryKey: PK, projection?: Projection) => Awaitable, T | null | undefined>) + & ( (entity: { new(): T }, projection?: Projection) => Awaitable, T | null | undefined>) + & ( (entity: { new(): T }, primaryKey: PK, projection?: Projection) => Awaitable, T | null | undefined>) & ((subject: ref) => SELECT<_TODO>) type SELECT_from =