1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-24 07:06:22 +09:00

Fix type annotation

This commit is contained in:
syuilo 2019-02-22 13:39:06 +09:00
parent 4920983f23
commit bd792d7661
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -68,7 +68,7 @@ export default async (endpoint: string, user: IUser, app: IApp, data: any, file?
}
// API invoking
return await ep.exec(data, user, app, file).catch(e => {
return await ep.exec(data, user, app, file).catch((e: Error) => {
if (e instanceof ApiError) {
throw e;
} else {
@ -76,7 +76,7 @@ export default async (endpoint: string, user: IUser, app: IApp, data: any, file?
throw new ApiError(null, {
e: {
message: e.message,
code: e.code,
code: e.name,
stack: e.stack
}
});