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 {}> {}
playground
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 {}> {}
Currently we have this legacy template interpolation for
@docwhich will look at the internal properties of the value passed.playground
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
::namemetadata property that we can use on templates args