Skip to content

[TypeScript Guidelines] Subclients can be exposed as readonly properties typed as FooOperations #9988

Description

@azure-sdk-automation

Bad code snippet:

readonly sharedAccessSignature: SharedAccessSignatureOperations;

What it should do:
The current guideline suggesting that subclients must be exposed only through get-prefixed methods with a Client suffix is out of date for this generated code. Our codegen intentionally emits readonly properties typed as FooOperations, so the guidance should be updated to reflect the current pattern rather than flagging it as incorrect.

Good code snippet:

readonly sharedAccessSignature: SharedAccessSignatureOperations;

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions