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:
Samuel Attard 2021-04-19 11:44:58 -07:00 committed by GitHub
parent ac9ec1a6ea
commit 400d7c4bce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 56 additions and 19 deletions

View file

@ -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)