An extension for Visual Studio Code that adds inline parameter annotations when calling a function.
196
stars
22
forks
source link
Issue with react useCallback and other functions which are typed to return the function given. #19
Closed
UncleClapton closed 4 years ago
Hey there! It seems like this plugin is getting confused by react's
useCallback
function, and other memoization funcs.if the function you're passing accepts no arguments, the name displayed appears like this:
When the function accepts an argument, the name takes on whatever name that argument is.
In both of these cases, the name given to this parameter should be
callback