refactor: convert constructor parameter properties for erasableSyntaxOnly compatibility

Signed-off-by: Paul Schultz <pschultz@pobox.com>
This commit is contained in:
Paul Schultz
2025-09-16 12:29:49 -05:00
parent b3a437e15d
commit 05f60e1e0a
167 changed files with 1826 additions and 679 deletions
@@ -27,11 +27,19 @@ export class WithPagination<
TPage extends Models.Paginated<TResultItem>,
TResultItem,
> {
private readonly createUrl: (options: PaginationOptions) => URL;
private readonly fetch: (url: URL) => Promise<TPage>;
private readonly pagelen?: number;
constructor(
private readonly createUrl: (options: PaginationOptions) => URL,
private readonly fetch: (url: URL) => Promise<TPage>,
private readonly pagelen?: number,
) {}
createUrl: (options: PaginationOptions) => URL,
fetch: (url: URL) => Promise<TPage>,
pagelen?: number,
) {
this.createUrl = createUrl;
this.fetch = fetch;
this.pagelen = pagelen;
}
getPage(options?: PaginationOptions): Promise<TPage> {
const opts = { page: 1, pagelen: this.pagelen ?? 100, ...options };