message: Generting imports for external enums in TS
diff: @@ -763,6 +763,10 @@ class JsTsGenerator : public BaseGenerator {
  GenPrefixedTypeName(GenTypeName(field.value.type, false, true),
  field.value.type.enum_def->file) +
  " {\n";
  +
  + if (!parser_.opts.generate_all) {
  + imported_files.insert(field.value.type.enum_def->file);
  + }
  } else {
  code += "):" + GenTypeName(field.value.type, false, true) + " {\n";
  }
  