-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
After last update the suport for Promise has [re]appeared ...
Although there is tiny type mismatch causing a typescript error:
... protected processFileGet(response: Response): Promise<FileResponse> { ... let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined ... return response.blob().then((blob) => { return { fileName: fileName, data: blob, status: status, headers: _headers }
Thy type of variable fileName: string | undefined
is beening set to
FileResponse.fileName? of type "string" - error appears
FileResponse.fileName? should probably have type "string | undefined"
Best regards,
Łukasz
P.S. Your software is a great support, thank you.