voidで値を返さない
This commit is contained in:
parent
68234085db
commit
79be8d6101
|
@ -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<{
|
||||||
|
|
Loading…
Reference in New Issue