microsoft / microsoft/typespec

typeref value

Open
#6,322 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

One gap with the value world is if your options takes a reference to a type you cannot use an object value anymore and have to keep using model for configuration.

I could be nice to have a value that is a reference to a type. So you can have something like that

```tsp
@client(#{
name: "MyClient",
service: typeref MyOrg.MyService
})
```

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.