Skip to content

Support ::name metadata property #2964

Open

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 {}> {}

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 {}> {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions