Skip to content

typeref value #6322

@timotheeguerin

Description

@timotheeguerin

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler:coreIssues for @typespec/compilerdesign:neededA design request has been raised that needs a proposaltriaged:core

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions