From 67fb99a6c7c0bca4d9022fa05bb3f81a12099f98 Mon Sep 17 00:00:00 2001 From: Johannes Vogel <31311694+johannes-vogel@users.noreply.github.com> Date: Tue, 25 Nov 2025 09:18:15 +0100 Subject: [PATCH] fix: SELECT.one also returns undefined --- apis/ql.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 =