Skip to content

Commit 38ee3e1

Browse files
authored
Merge pull request #169 from contentstack/fix/DX-2875
fix: 🩹 return type for entry-querable methods
2 parents bdf0daa + d91f8f8 commit 38ee3e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/entry-queryable.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class EntryQueryable extends BaseQuery {
1515
* @param {string} fieldUid - field uid to select
1616
* @returns {EntryQueryable} - returns EntryQueryable object for chaining method calls
1717
*/
18-
only(fieldUid: string|string[]): EntryQueryable {
18+
only(fieldUid: string|string[]): this {
1919
if (Array.isArray(fieldUid)) {
2020
let i = 0;
2121
for (const uid of fieldUid) {
@@ -41,7 +41,7 @@ export class EntryQueryable extends BaseQuery {
4141
* @param {string} fieldUid - field uid to exclude
4242
* @returns {EntryQueryable} - returns EntryQueryable object for chaining method calls
4343
*/
44-
except(fieldUid: string|string[]): EntryQueryable {
44+
except(fieldUid: string|string[]): this {
4545
if (Array.isArray(fieldUid)) {
4646
let i = 0;
4747
for (const uid of fieldUid) {

0 commit comments

Comments
 (0)