we have a interfaces.ts to define the RLCModel And RLCOptions that is export for both Autorest RLC generator and TypeSpec emitters.
The generated Typescript/Javascript Rest Level Client has the following structure:
- Client (Handled by buildClient.ts)
- Client Definition (Handled by buildClientDefinitions.ts)
- Index File (Handled by buildIndexFile.ts)
- isUnexpectedHelper (Handled by buildIsUnexpectedHelper.ts) pollingHelper (Handled by buildPollingHelper.ts) paginateHelper (Handled by buildPaginateHelper.ts)
- Models (Handled by buildObjectTypes.ts and buildSchemaType.ts)
- Parameters (Handled by buildParameterTypes.ts)
- Responses (Handled by buildResponseTypes.ts)
- Parameters (Handled by parametersGenerator.ts)
- Metadata (Handled here)
Please follow the Prerequisite part to install the dependencies.
If there's a new feature request, Contributors can
- add properties in RLCModel and RLCOptions in interfaces.ts
- add the build logic about how the newly add properties is going to change the generation behavior.
We have added unit tests for this lib and you can debug them by following these steps.
- We have set up a debugging profile for unit tests that you can use:
- Put breakpoints in your test or source code where you want to pause the execution
- Switch to the debugger tab on the left side
- Choose the "[RLC-Common] Debug Unit Test" profile from the dropdown menu
- Press the "Play" button to start debugging