microsoft / microsoft/typespec
typeref value
Open
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
Assessment
This issue has not been assessed yet.