Answer the question
In order to leave comments, you need to log in
How to specify the correct type?
I'm trying to make a function that would accept as a key - only the keys of an object of type string. It turned out to be done, but inside the function I cannot use key as an index. As I understand it, before using, you need to make sure that it's not never? Tell me where to dig.
Code:
Sori that screen, there is no other now
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question