File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,12 @@ const typify = (type) => {
99
99
return 'string'
100
100
case 'touchbaritem' :
101
101
return '(TouchBarButton | TouchBarColorPicker | TouchBarGroup | TouchBarLabel | TouchBarPopover | TouchBarScrubber | TouchBarSegmentedControl | TouchBarSlider | TouchBarSpacer | null)'
102
+ case 'readablestream' :
103
+ // See StreamProtocolResponse.data which accepts a Node.js readable stream.
104
+ // The ReadableStream type unfortunately conflicts with the ReadableStream interface
105
+ // defined in the Streams standard (https://streams.spec.whatwg.org/#rs-class) so
106
+ // we'll have to qualify it with the Node.js namespace.
107
+ return 'NodeJS.ReadableStream'
102
108
}
103
109
// if (type.substr(0, 8) === 'TouchBar' && type !== 'TouchBar') {
104
110
// return `Electron.${type}`
You can’t perform that action at this time.
0 commit comments