Skip to content

Commit 85104b9

Browse files
Merge pull request #90 from electron/touch-bar-item
Add support for abstract TouchBarItem
2 parents 9fa8efa + 0352a22 commit 85104b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ const typify = (type) => {
9797
return 'Promise<any>'
9898
case 'url':
9999
return 'string'
100+
case 'touchbaritem':
101+
return '(TouchBarButton | TouchBarColorPicker | TouchBarGroup | TouchBarLabel | TouchBarPopover | TouchBarScrubber | TouchBarSegmentedControl | TouchBarSlider | TouchBarSpacer | null)'
100102
}
101103
// if (type.substr(0, 8) === 'TouchBar' && type !== 'TouchBar') {
102104
// return `Electron.${type}`

0 commit comments

Comments
 (0)