voidで値を返さない

This commit is contained in:
Kisaragi Marine 2024-07-09 19:28:16 +09:00
parent 68234085db
commit 79be8d6101
No known key found for this signature in database
GPG Key ID: C6631564CD2110E4
1 changed files with 0 additions and 1 deletions

View File

@ -65,7 +65,6 @@ export const failedApiCall = async <E extends keyof misskey.Endpoints, P extends
assert.ok(res.body); assert.ok(res.body);
assert.strictEqual(castAsError(res.body as any).error.code, code, inspect(res.body)); assert.strictEqual(castAsError(res.body as any).error.code, code, inspect(res.body));
assert.strictEqual(castAsError(res.body as any).error.id, id, inspect(res.body)); assert.strictEqual(castAsError(res.body as any).error.id, id, inspect(res.body));
return res.body;
}; };
export const api = async <E extends keyof misskey.Endpoints>(path: E, params: misskey.Endpoints[E]['req'], me?: UserToken): Promise<{ export const api = async <E extends keyof misskey.Endpoints>(path: E, params: misskey.Endpoints[E]['req'], me?: UserToken): Promise<{