Skip to content
Discussion options

You must be logged in to vote

The doc interpolation is very limited and just interpolate internal properties of the model and is going to be deprecated, the way moving forward is going to be with string interpllation and functions. We do not expose yet a function like that but you can write one that fits your needs

extern fn myName(type: unknown): valueof string;

@doc("DTO of ${myName(T)} list")
model ObjectList<T extends Model> is ExcerptOf<T> {} 

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dvv
Comment options

@timotheeguerin
Comment options

@dvv
Comment options

@timotheeguerin
Comment options

Answer selected by dvv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants