Skip to content

How to get the list of a model property names? #4171

Answered by timotheeguerin
dvv asked this question in Q&A
Discussion options

You must be logged in to vote

We don't have that type yet, it would be something that you can build yourself with decorators

@propsOf(T)
union PropsOf<T> {};

where this is a decorator that dynamically add the variants

Replies: 1 comment 3 replies

Comment options

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

@timotheeguerin
Comment options

@dvv
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