fix(tauri.js) add types

This commit is contained in:
Lucas Nogueira 2020-05-21 19:16:43 -03:00
parent 037665247f
commit 19c14a4c03
No known key found for this signature in database
GPG Key ID: 7586E672BBF422F1
1 changed files with 2 additions and 2 deletions

View File

@ -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 () {