import type { CustomQueryInterface } from '../types'; type ConstructorParams = { next: () => Promise; isLoading: () => boolean; hasNext: () => boolean; }; export class CustomQuery implements CustomQueryInterface { constructor(private params: ConstructorParams) {} get isLoading(): boolean { return this.params.isLoading(); } get hasNext(): boolean { return this.params.hasNext(); } next() { return this.params.next(); } }