Skip to content

Commit 3049a88

Browse files
committed
fix: set paginator metadata to any
1 parent f9f3fb6 commit 3049a88

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/paginator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class Paginator<PaginatorCollection extends Collection<any, any, any>> {
5252
*/
5353
constructor(
5454
public collection: PaginatorCollection,
55-
public metaData: Record<string, any>
55+
public metaData: any
5656
) {}
5757

5858
/**

src/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export interface PaginatorContract<PaginatorCollection extends CollectionContrac
312312
/**
313313
* Pagination metadata (page numbers, total count, etc.)
314314
*/
315-
metaData: Record<string, any>
315+
metaData: any
316316
}
317317

318318
/**
@@ -546,7 +546,7 @@ export type UnpackAsTopLevelPaginator<T, Wrapper extends string, TransformedMeta
546546
: Prettify<
547547
{
548548
[K in Wrapper]: UnpackAsTopLevelCollection<Collection, undefined>
549-
} & { metadata: Record<string, any> }
549+
} & { metadata: any }
550550
>
551551
: never
552552

@@ -586,14 +586,14 @@ export type UnpackTopLevelValues<Data> = Prettify<
586586
[K in ExtractDefined<Data>]: Data[K] extends PaginatorContract<infer Collection>
587587
? {
588588
data: UnpackAsTopLevelCollection<Collection, undefined>
589-
metadata: Record<string, any>
589+
metadata: any
590590
}
591591
: UnpackKeyValue<SplitItm<Data[K]>, -1, 0>
592592
} & {
593593
[K in ExtractUndefined<Data>]?: Data[K] extends PaginatorContract<infer Collection>
594594
? {
595595
data: UnpackAsTopLevelCollection<Collection, undefined>
596-
metadata: Record<string, any>
596+
metadata: any
597597
}
598598
: UnpackKeyValue<SplitItm<Data[K]>, -1, 0>
599599
}

0 commit comments

Comments
 (0)