Skip to content

How to get TS Type from Adonis schema? #3365

Answered by RomainLanz
cawa-93 asked this question in Help
Discussion options

You must be logged in to vote

Hey @cawa-93! 👋🏻

You can export it using the following.

export type NewPostValidatorData = NewPostValidator['schema']['props']

class NewPostValidator {
  // ...
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cawa-93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants