Merge pull request #1014 from ninaniiranen/dont-emit-module-exports
Don't emit module exports is justTypes is true
This commit is contained in:
Коммит
8dae953a69
|
@ -208,6 +208,14 @@ export abstract class TypeScriptFlowBaseRenderer extends JavaScriptRenderer {
|
|||
if (this._tsFlowOptions.justTypes) return;
|
||||
super.emitConvertModule();
|
||||
}
|
||||
|
||||
protected emitModuleExports(): void {
|
||||
if (this._tsFlowOptions.justTypes) {
|
||||
return;
|
||||
} else {
|
||||
super.emitModuleExports();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class TypeScriptRenderer extends TypeScriptFlowBaseRenderer {
|
||||
|
|
Загрузка…
Ссылка в новой задаче