microsoft / microsoft/typespec

New wrapper types

Open
#7,698 0 comments 0 reactions 0 assignees View on GitHub
compiler:core design:needed triaged:core
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.