Fix type annotation
This commit is contained in:
		| @@ -68,7 +68,7 @@ export default async (endpoint: string, user: IUser, app: IApp, data: any, file? | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	// API invoking | 	// 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) { | 		if (e instanceof ApiError) { | ||||||
| 			throw e; | 			throw e; | ||||||
| 		} else { | 		} else { | ||||||
| @@ -76,7 +76,7 @@ export default async (endpoint: string, user: IUser, app: IApp, data: any, file? | |||||||
| 			throw new ApiError(null, { | 			throw new ApiError(null, { | ||||||
| 				e: { | 				e: { | ||||||
| 					message: e.message, | 					message: e.message, | ||||||
| 					code: e.code, | 					code: e.name, | ||||||
| 					stack: e.stack | 					stack: e.stack | ||||||
| 				} | 				} | ||||||
| 			}); | 			}); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo