Replies: 1 comment 1 reply
-
|
There is probably missing mapping from |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently trying to improve the code quality of our Inferno project by enabling various Typescript lints. Of these @typescript-eslint/no-unsafe-return is causing difficulties in render methods.
Based on the definition of Component, render() should return
InfernoNode. However this doesnt satisfy the lint rule, it returns an error "Unsafe return of a value of type error". To fix this it is necessary to add an explicit conversion like this:Doing this in every single render and view method would get extremely verbose. Is there any way to have the conversion done automatically?
Beta Was this translation helpful? Give feedback.
All reactions