Extension for AutoRest (https://github.com/Azure/autorest) that generates TypeScript code. The transpiled javascript code is isomorphic. It can be run in browser and in node.js environment.
MIT License
177
stars
75
forks
source link
import duplicate models with latest main codegen and import from the wrong path #2622
when using latest main codegen to generate code, under src/models/models.ts, it will be generated like following code:
import { serializeRecord } from "..helpersserializerHelpers.js"; are duplicate.
And the import path are wrong.
the path ..helpersserializerHelpers.js should be ../helpers/serializerHelpers.js
the path ..\restindex.js should be ../rest/index.js
when using latest main codegen to generate code, under src/models/models.ts, it will be generated like following code:
import { serializeRecord } from "..helpersserializerHelpers.js";
are duplicate. And the import path are wrong. the path..helpersserializerHelpers.js
should be../helpers/serializerHelpers.js
the path..\restindex.js
should be../rest/index.js