mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
docs: fix some string union typings (#40180)
This commit is contained in:
@@ -429,6 +429,11 @@ win2.once('ready-to-show', () => {
|
||||
app.relaunch({ args: process.argv.slice(1).concat(['--relaunch']) });
|
||||
app.exit(0);
|
||||
|
||||
app.configureHostResolver({ secureDnsMode: 'off' });
|
||||
|
||||
// @ts-expect-error Invalid type value
|
||||
app.configureHostResolver({ secureDnsMode: 'foo' });
|
||||
|
||||
// @ts-expect-error Removed API
|
||||
console.log(app.runningUnderRosettaTranslation);
|
||||
|
||||
@@ -1284,6 +1289,11 @@ win4.webContents.on('devtools-open-url', (event, url) => {
|
||||
console.log(url);
|
||||
});
|
||||
|
||||
win4.webContents.insertCSS('body {}', { cssOrigin: 'user' });
|
||||
|
||||
// @ts-expect-error Invalid type value
|
||||
win4.webContents.insertCSS('body {}', { cssOrigin: 'foo' });
|
||||
|
||||
win4.loadURL('http://github.com');
|
||||
|
||||
// @ts-expect-error Removed API
|
||||
|
||||
Reference in New Issue
Block a user