From 4aa2a50a5f95e73936da51519bcddc24b9659fc0 Mon Sep 17 00:00:00 2001 From: Alex Puiu Date: Mon, 28 Feb 2022 09:35:58 +0200 Subject: [PATCH] Solve typescript error. --- resources/js/services/ApiService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/services/ApiService.ts b/resources/js/services/ApiService.ts index 2d6dac9..4197f83 100644 --- a/resources/js/services/ApiService.ts +++ b/resources/js/services/ApiService.ts @@ -145,7 +145,7 @@ export default class ApiService { * * @returns */ - public async convertFile(content: string, file: object, searchers: Array<{ key: string; type: string; value: string; }>) { + public async convertFile(content: string, file: {id: string, name: string}, searchers: Array<{ key: string; type: string; value: string; }>) { try { let response = await axios.post( this.apiRoutes.fileDownload,