mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
* [TS] Fix four bugs with imported types in TypeScript. * When a type had a vector of imported enums: 1) the enum type's file wasn't added to the generated code's list of imports; and 2) the enum wasn't prefixed with the NS<hash> prefix and wasn't getting resolved; but 3) non-enum types (ie, "flatbuffers.Offset") were getting the NS<hash> prefix when they weren't. * Also, type name prefixes weren't properly attributed with imported structs in unions because the source definition passed to the typename prefixing method was for the union, not for the location of the imported struct. * clang fmt * Use of enum_def / struct_def for prefixing types needs to have the files added to imported files when not generating all types. * clang fmt