Improve typing

This commit is contained in:
Pieter Vander Vennet 2023-01-25 11:35:57 +01:00
parent 5966dd3aa7
commit 2d0cb87e5a

View file

@ -147,7 +147,7 @@ export default class ScriptUtils {
return JSON.parse(data.content)
}
private static Download(url, headers?: any): Promise<{ content: string }> {
private static Download(url: string, headers?: any): Promise<{ content: string }> {
return new Promise((resolve, reject) => {
try {
headers = headers ?? {}