microsoft / microsoft/typespec
New wrapper types
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
Creating this design issue from https://github.com/microsoft/typespec/issues/4546 and previous discussions where we'd want to have a way to decorate/augment certain things that currently are just references to another types and so have no actual targetable entities.
This includes things like
- Array element type
- Operation return type
This probably could be sorted in the type graph by adding a secondary property
```ts
returnType: Type;
returnTypeExpanded: ReturnType
```
But it also going to be an intresting problem on how this work with augment decorators as things like that already navigate to the reference `myOp::returnType`
Contributor guide
Assessment
This issue has not been assessed yet.