From 96447da4a9e05876c3001a3fadd2165f575b543b Mon Sep 17 00:00:00 2001 From: Oliver Sader Date: Sun, 25 Feb 2024 17:40:32 +0100 Subject: [PATCH] fix(types): add const type parameter for QueryBuilder.only() and .without() --- src/runtime/types/index.ts | 8 ++++---- src/runtime/types/query.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/runtime/types/index.ts b/src/runtime/types/index.ts index 678cc6952..1e4df4e07 100644 --- a/src/runtime/types/index.ts +++ b/src/runtime/types/index.ts @@ -437,14 +437,14 @@ export interface QueryBuilder { /** * Select a subset of fields */ - only(keys: K): QueryBuilder> - only(keys: K): QueryBuilder> + only(keys: K): QueryBuilder> + only(keys: K): QueryBuilder> /** * Remove a subset of fields */ - without(keys: K): QueryBuilder> - without(keys: K): QueryBuilder> + without(keys: K): QueryBuilder> + without(keys: K): QueryBuilder> /** * Sort results diff --git a/src/runtime/types/query.ts b/src/runtime/types/query.ts index a4eb56f1d..818c9ddfa 100644 --- a/src/runtime/types/query.ts +++ b/src/runtime/types/query.ts @@ -286,8 +286,8 @@ export interface ContentQueryBuilder { /** * Remove a subset of fields */ - without(keys: K): ContentQueryBuilder, Y> - without(keys: K): ContentQueryBuilder, Y> + without(keys: K): ContentQueryBuilder, Y> + without(keys: K): ContentQueryBuilder, Y> /** * Filter results