chore: upgrade ts generator for better type safety (#20975)
* chore: upgrade ts generator for better type safety * spec: fix tests
This commit is contained in:
parent
6e5ac301ce
commit
fcee7212ce
5 changed files with 10 additions and 12 deletions
|
@ -529,12 +529,12 @@ describe('protocol module', () => {
|
|||
const port = (server.address() as AddressInfo).port
|
||||
const url = `http://127.0.0.1:${port}`
|
||||
await interceptHttpProtocol('http', (request, callback) => {
|
||||
const data = {
|
||||
const data: Electron.RedirectRequest = {
|
||||
url: url,
|
||||
method: 'POST',
|
||||
uploadData: {
|
||||
contentType: 'application/x-www-form-urlencoded',
|
||||
bytes: request.uploadData[0].bytes
|
||||
data: request.uploadData[0].bytes
|
||||
},
|
||||
session: null
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue