Skip to content

KeysOf & OAS emitter #7078

Apr 22, 2025 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

with the current types it is not possible, you could make your own type+decorator if you want.

@applyKeyOf(T)
union KeyOf<T> {
}

and define the applyKeyOf decorator to add each variant to the union from the keys

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@p-bakker
Comment options

@timotheeguerin
Comment options

Answer selected by p-bakker
@p-bakker
Comment options

@p-bakker
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants