mirror of https://github.com/tauri-apps/tauri
fix(tauri.js) add types
This commit is contained in:
parent
037665247f
commit
19c14a4c03
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue