Explorar el Código

fix(tauri.js) add types

Lucas Nogueira hace 5 años
padre
commit
19c14a4c03
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      cli/tauri.js/src/runner.ts

+ 2 - 2
cli/tauri.js/src/runner.ts

@@ -89,10 +89,10 @@ class Runner {
         selfHandleResponse: true
       })
 
-      proxy.on('proxyRes', function (proxyRes, req, res) {
+      proxy.on('proxyRes', function (proxyRes: http.IncomingMessage, req: http.IncomingMessage, res: http.ServerResponse) {
         if (req.url === '/') {
           let body: Uint8Array[] = []
-          proxyRes.on('data', function (chunk) {
+          proxyRes.on('data', function (chunk: Uint8Array) {
             body.push(chunk)
           })
           proxyRes.on('end', function () {