chore: update ts parser for description comment fixes and generic types (#28709)
* chore: update ts parser for description comment fixes * docs: strongly type the getUserDefault API * spec: add getUserMedia type assertions to smoke run
This commit is contained in:
parent
ac9ec1a6ea
commit
400d7c4bce
6 changed files with 56 additions and 19 deletions
|
@ -373,6 +373,12 @@ if (process.platform === 'win32') {
|
|||
console.log('Color for menu is', systemPreferences.getColor('menu'))
|
||||
}
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
const value: string = systemPreferences.getUserDefault('Foo', 'string');
|
||||
// @ts-expect-error
|
||||
const value2: number = systemPreferences.getUserDefault('Foo', 'boolean');
|
||||
}
|
||||
|
||||
// Create the window.
|
||||
const win1 = new BrowserWindow(browserOptions)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue