API call in Typescript functional component #207
MysteryAchievement
started this conversation in
General
Replies: 1 comment 1 reply
-
|
I tried this as well: I still get Object is possibly 'undefined' for: and Unsafe call of an any typed value for |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to write a timer functional component in Typescript that can be started with a button. Here is some heavily stripped down example code:
The problem is eslint complains that
Object is possibly 'undefined'.
Unsafe call of an
anytyped value.Where can I find type information for the package and how do I get around this possibly undefined Object issue?
Beta Was this translation helpful? Give feedback.
All reactions