Merge branch 'develop' into drive-bulk

This commit is contained in:
syuilo 2025-05-10 14:42:29 +09:00
commit 5a84789229
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "misskey",
"version": "2025.5.1-alpha.0",
"version": "2025.5.1-alpha.1",
"codename": "nasubi",
"repository": {
"type": "git",

View File

@ -37,8 +37,8 @@ export type PagingCtx<E extends keyof Misskey.Endpoints = keyof Misskey.Endpoint
direction?: 'newer' | 'older';
};
export function usePagination<T extends MisskeyEntity>(props: {
ctx: PagingCtx;
export function usePagination<Endpoint extends keyof Misskey.Endpoints, T = Misskey.Endpoints[Endpoint]['res'] extends (infer I)[] ? I : never>(props: {
ctx: PagingCtx<Endpoint>;
useShallowRef?: boolean;
}) {
const items = props.useShallowRef ? shallowRef<T[]>([]) : ref<T[]>([]);

View File

@ -1,7 +1,7 @@
{
"type": "module",
"name": "misskey-js",
"version": "2025.5.1-alpha.0",
"version": "2025.5.1-alpha.1",
"description": "Misskey SDK for JavaScript",
"license": "MIT",
"main": "./built/index.js",