From d91f8f8249c1778012743fe42d62048a7eb79adc Mon Sep 17 00:00:00 2001 From: Nadeem Patwekar Date: Tue, 22 Apr 2025 12:44:35 +0530 Subject: [PATCH] fix: :adhesive_bandage: return type for entry-querable methods Github issue #167 --- src/lib/entry-queryable.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/entry-queryable.ts b/src/lib/entry-queryable.ts index 57c1edd..897abba 100644 --- a/src/lib/entry-queryable.ts +++ b/src/lib/entry-queryable.ts @@ -15,7 +15,7 @@ export class EntryQueryable extends BaseQuery { * @param {string} fieldUid - field uid to select * @returns {EntryQueryable} - returns EntryQueryable object for chaining method calls */ - only(fieldUid: string|string[]): EntryQueryable { + only(fieldUid: string|string[]): this { if (Array.isArray(fieldUid)) { let i = 0; for (const uid of fieldUid) { @@ -41,7 +41,7 @@ export class EntryQueryable extends BaseQuery { * @param {string} fieldUid - field uid to exclude * @returns {EntryQueryable} - returns EntryQueryable object for chaining method calls */ - except(fieldUid: string|string[]): EntryQueryable { + except(fieldUid: string|string[]): this { if (Array.isArray(fieldUid)) { let i = 0; for (const uid of fieldUid) {