Generate typescript for render variables #539
Answered
by
harttle
maximelebastard
asked this question in
Q&A
-
Hi, I'd like to make my templating safer using typescript. That tool would generate types from this: Hello {{name}}
{{ if age is not empty and age > 10 }}
You are {{ age }} years old
{{ endif }} type TemplateVars {
name: string;
age?: number;
} Is there any kind of method or tool to do that automatically ? |
Beta Was this translation helpful? Give feedback.
Answered by
harttle
Sep 25, 2022
Replies: 1 comment
-
We don't have this feature currently. And it's not easy to implement without understanding every block tag. There's more info here: #528 #421 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
maximelebastard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We don't have this feature currently. And it's not easy to implement without understanding every block tag. There's more info here: #528 #421