File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,6 @@ export const wrapComment = (comment: string, additionalTags: DocumentationTag[]
82
82
return result . concat ( ' */' ) ;
83
83
} ;
84
84
85
- const prefixTypeForSafety = ( type : string ) => {
86
- if ( type !== 'Object' && typeof type === 'string' && ! isPrimitive ( type ) && ! isBuiltIn ( type ) ) {
87
- return `Electron.${ type } ` ;
88
- }
89
- return type ;
90
- } ;
91
-
92
85
export const typify = (
93
86
type : TypeInformation | TypeInformation [ ] ,
94
87
maybeInnerReturnTypeName ?: string ,
@@ -205,7 +198,7 @@ export const typify = (
205
198
return '(() => void)' ;
206
199
case 'promise' :
207
200
if ( innerTypes ) {
208
- return `Promise<${ prefixTypeForSafety ( typify ( innerTypes [ 0 ] ) ) } >` ;
201
+ return `Promise<${ typify ( innerTypes [ 0 ] ) } >` ;
209
202
}
210
203
throw new Error ( 'Promise with missing inner type' ) ;
211
204
case 'record' :
You can’t perform that action at this time.
0 commit comments