Repository navigation
|
Hi, @azure-tools/typespec-ts `model MyCalculationOutput { get Thanks |
Replies: 1 comment 2 replies
|
The background is: The 'calculation' method returns a list of records. I want this list of records could be presented as a dictionary/map of records with the 'id' of each record used as the dictionary/map key |
Key conceptually flags the fields which identify the resource, but doesn't imply any special behavior for that type within an array. You can maybe get what you want by doing: