We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See pr https://github.com/Azure/autorest.typescript/pull/2501/files Generated code: https://github.com/kazrael2119/autorest.typescript/blob/deviceregistry-modular/packages/typespec-test/test/DeviceRegistry.Management/generated/typespec-ts/src/rest/isUnexpected.ts#L82
In following OperationStatusGetDefaultResponse is a subset of OperationStatusGet200Response so the helper fail to type narrowing.
export function isUnexpected( response: OperationStatusGet200Response | OperationStatusGetDefaultResponse, ): response is OperationStatusGetDefaultResponse;
Finally causing the modular code failed to compile.
The text was updated successfully, but these errors were encountered:
need further discussion on the typespec best practice.
Sorry, something went wrong.
The definition is designed in v3 common models https://github.com/Azure/azure-rest-api-specs/blob/main/specification/deviceregistry/resource-manager/Microsoft.DeviceRegistry/preview/2023-11-01-preview/deviceregistry.json#L192-L204.
MaryGao
Successfully merging a pull request may close this issue.
See pr https://github.com/Azure/autorest.typescript/pull/2501/files
Generated code: https://github.com/kazrael2119/autorest.typescript/blob/deviceregistry-modular/packages/typespec-test/test/DeviceRegistry.Management/generated/typespec-ts/src/rest/isUnexpected.ts#L82
In following OperationStatusGetDefaultResponse is a subset of OperationStatusGet200Response so the helper fail to type narrowing.
Finally causing the modular code failed to compile.
The text was updated successfully, but these errors were encountered: