[tcgc] to provide api for downstream emitters to know if a model is pagedResult #1464
Closed
4 tasks done
Labels
design:needed
A design request has been raised that needs a proposal
feature
New feature or request
lib:tcgc
Issues for @azure-tools/typespec-client-generator-core library
Clear and concise description of the problem
In JS modular, we will not expose the
@pagedResult
models to customers, instead, we will expose an iterator of the itemType in the value list, however, currently, we have no way to know if a model ofSdkModelType
is pagedResult or not from tcgc,the only way is to leverage
getPagedResult
api from compiler, which means we have to use the raw type to get such info.I wonder if tcgc could help provide apis or extract such info in the
SdkModelType
for us directly?Checklist
The text was updated successfully, but these errors were encountered: