-
Notifications
You must be signed in to change notification settings - Fork 334
Open
Labels
Milestone
Description
Currently we have this legacy template interpolation for @doc which will look at the internal properties of the value passed.
@doc("{name}", T)
model Foo<T extends {}> {}
This parameter is broken as it requires to be an object but it looks at the internal type properties(it doesn't actually interpolate the model properties)
We added string interpolation in a goal to remove fill that gap but it doesn't actually cover the only case where the formatArgs parameter did actually work.
We should find a way to have ::name metadata property that we can use on templates args
@doc("${T::name}")
model Foo<T extends {}> {}