Describe the bug
export declare function getClientNameOverride(context: TCGCContext, entity: Type): string | undefined;
but it returns an object when the issue happens

Reproduction
loadtesting
https://github.com/Azure/azure-rest-api-specs-pr/blob/c4b80c74909bf593825e29ce7ff459decba35efd/specification/loadtestservice/LoadTestService/tspconfig.yaml
PR https://github.com/Azure/azure-rest-api-specs-pr/pull/17749
operation is
createOrUpdateTest is StandardResourceOperations.ResourceCreateOrUpdate<Test>;
they also have a
@@clientName(Azure.Core.Foundations.ResourceBody.resource, "body");
in routes.tsp, not sure if related.
call to getClientNameOverride is on the ModelProperty of the Test model.
Checklist
Describe the bug
but it returns an object when the issue happens

Reproduction
loadtesting
https://github.com/Azure/azure-rest-api-specs-pr/blob/c4b80c74909bf593825e29ce7ff459decba35efd/specification/loadtestservice/LoadTestService/tspconfig.yaml
PR https://github.com/Azure/azure-rest-api-specs-pr/pull/17749
operation is
they also have a
in routes.tsp, not sure if related.
call to
getClientNameOverrideis on the ModelProperty of theTestmodel.Checklist