Skip to content

Checking for null for FileTrigger's onSelect() callback #6507

Answered by snowystinger
denchen asked this question in Q&A
Discussion options

You must be logged in to vote

The type for typescript input onChange always includes null, it doesn't know what type of event it is. I guess we could assert that it's never null for this one, as suggested in this discussion https://www.reddit.com/r/typescript/comments/19dqio6/what_is_the_correct_type_for_input_file_onchange/

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by denchen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants