You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a TemplatedType that passes isTemplateDeclaration, there doesn't seem to be a way to get the defaults of its type parameters as Type instances.
This blocks some of what I want to implement in TomerAberbach/typespec-fast-check#76. I want to emit functions with default values for each templated type. e.g.
Describe the bug
Given a
TemplatedType
that passesisTemplateDeclaration
, there doesn't seem to be a way to get the defaults of its type parameters asType
instances.This blocks some of what I want to implement in TomerAberbach/typespec-fast-check#76. I want to emit functions with default values for each templated type. e.g.
Should become the following from my emitter:
But I can't figure out any way to get the
Type
for the= string
default from the TypeSpec file.Reproduction
See above.
Checklist
The text was updated successfully, but these errors were encountered: