Update use-pagination.ts
This commit is contained in:
parent
565b111d7c
commit
00b6e29a68
|
@ -42,8 +42,8 @@ function arrayToEntries(entities: MisskeyEntity[]): [string, MisskeyEntity][] {
|
|||
return entities.map(en => [en.id, en]);
|
||||
}
|
||||
|
||||
export function usePagination<T = MisskeyEntity>(props: {
|
||||
ctx: PagingCtx;
|
||||
export function usePagination<Ctx extends PagingCtx, T = Misskey.Endpoints[Ctx['endpoint']]['res']>(props: {
|
||||
ctx: Ctx;
|
||||
}) {
|
||||
/**
|
||||
* 表示するアイテムのソース
|
||||
|
|
Loading…
Reference in New Issue