Possible to enforce the type of a template @Input() parameter? #1639
-
Is it possible somehow enforce that a parameter to an Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, you would write a custom rule which leverages the TypeScript compiler's type checking APIs: https://typescript-eslint.io/developers/custom-rules#typed-rules You can also leverage some of the existing utilities from |
Beta Was this translation helpful? Give feedback.
Yes, you would write a custom rule which leverages the TypeScript compiler's type checking APIs:
https://typescript-eslint.io/developers/custom-rules#typed-rules
You can also leverage some of the existing utilities from
@angular-eslint/utils
in your rule implementation