autorest.typescript
autorest.typescript copied to clipboard
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.
fixes https://github.com/Azure/autorest.typescript/issues/2314
https://github.com/Azure/azure-sdk-for-js/pull/30102#discussion_r1662407510
There are two gaps for client options - The naming rule is different between them - There is no $host option in modular but with one in hlc Regarding item...
issue happened in https://github.com/Azure/azure-sdk-for-js/pull/30102#discussion_r1660717401
manully changes for https://github.com/Azure/azure-sdk-for-js/pull/30102 1. before generate code, add ``` @@clientName(Microsoft.DocumentDB, "MongoClusterManagementClient", "javascript" ); ``` in client .tsp add ``` "@azure-tools/typespec-ts": azureSdkForJs: true isModularLibrary: true generateMetadata: true hierarchyClient: false experimentalExtensibleEnums:...
Drived from here: https://github.com/Azure/autorest.typescript/pull/2643#discussion_r1662263155. See [code](https://github.com/Azure/autorest.typescript/blob/main/packages/typespec-ts/src/modular/buildCodeModel.ts#L951) when we handle property we would automatically cast the property name.
build failed ``` $ npm install && npm run build up to date, audited 374 packages in 2s 86 packages are looking for funding run `npm fund` for details found...