chore: update to latest TypeScript, which has built-in WeakRef declarations (#27425)
This commit is contained in:
parent
fcdb7ad21a
commit
70190ec2b1
27 changed files with 70 additions and 128 deletions
|
@ -255,7 +255,7 @@ describe('<webview> tag', function () {
|
|||
zoomFactor: 1.2
|
||||
}
|
||||
});
|
||||
const promise = new Promise((resolve) => {
|
||||
const promise = new Promise<void>((resolve) => {
|
||||
ipcMain.on('webview-zoom-level', (event, zoomLevel, zoomFactor, newHost, final) => {
|
||||
if (!newHost) {
|
||||
expect(zoomFactor).to.equal(1.44);
|
||||
|
@ -285,7 +285,7 @@ describe('<webview> tag', function () {
|
|||
zoomFactor: 1.2
|
||||
}
|
||||
});
|
||||
const promise = new Promise((resolve) => {
|
||||
const promise = new Promise<void>((resolve) => {
|
||||
ipcMain.on('webview-zoom-in-page', (event, zoomLevel, zoomFactor, final) => {
|
||||
expect(zoomFactor).to.equal(1.44);
|
||||
expect(zoomLevel).to.equal(2.0);
|
||||
|
@ -500,7 +500,7 @@ describe('<webview> tag', function () {
|
|||
const partition = 'permissionTest';
|
||||
|
||||
function setUpRequestHandler (webContentsId: number, requestedPermission: string) {
|
||||
return new Promise((resolve, reject) => {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
session.fromPartition(partition).setPermissionRequestHandler(function (webContents, permission, callback) {
|
||||
if (webContents.id === webContentsId) {
|
||||
// requestMIDIAccess with sysex requests both midi and midiSysex so
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue