docs: type names changed from wrapper to primitive (#31752)

This commit is contained in:
Milan Burda 2021-11-16 05:13:18 +01:00 committed by GitHub
parent 246884c4fb
commit e6b1d95a1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
115 changed files with 1685 additions and 1685 deletions

View file

@ -8,12 +8,12 @@ _This class is not exported from the `'electron'` module. It is only available a
### `new TouchBarColorPicker(options)`
* `options` Object
* `availableColors` String[] (optional) - Array of hex color strings to
* `availableColors` string[] (optional) - Array of hex color strings to
appear as possible colors to select.
* `selectedColor` String (optional) - The selected hex color in the picker,
* `selectedColor` string (optional) - The selected hex color in the picker,
i.e `#ABCDEF`.
* `change` Function (optional) - Function to call when a color is selected.
* `color` String - The color that the user selected from the picker.
* `color` string - The color that the user selected from the picker.
### Instance Properties
@ -21,10 +21,10 @@ The following properties are available on instances of `TouchBarColorPicker`:
#### `touchBarColorPicker.availableColors`
A `String[]` array representing the color picker's available colors to select. Changing this value immediately
A `string[]` array representing the color picker's available colors to select. Changing this value immediately
updates the color picker in the touch bar.
#### `touchBarColorPicker.selectedColor`
A `String` hex code representing the color picker's currently selected color. Changing this value immediately
A `string` hex code representing the color picker's currently selected color. Changing this value immediately
updates the color picker in the touch bar.