Update use-pagination.ts

This commit is contained in:
syuilo 2025-04-29 17:43:40 +09:00
parent 565b111d7c
commit 00b6e29a68
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@ function arrayToEntries(entities: MisskeyEntity[]): [string, MisskeyEntity][] {
return entities.map(en => [en.id, en]); return entities.map(en => [en.id, en]);
} }
export function usePagination<T = MisskeyEntity>(props: { export function usePagination<Ctx extends PagingCtx, T = Misskey.Endpoints[Ctx['endpoint']]['res']>(props: {
ctx: PagingCtx; ctx: Ctx;
}) { }) {
/** /**
* *