You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Thanks to those who contributed the TypeScript definitions, they're very useful. I did run into what looks like a problem with the PromiseStateMapping and FunctionMappingdefinitions. They look like:
appear to need an | undefined appended to them. Without this, I get (at least with TypeScript 3.3.3) type errors with connect() whenever the refetch props of the component are declared as optional with ?. But all refetch props need to be declared optional, since otherwise users of the component would have to pass them in. Does this sound right or am I missing something?
The text was updated successfully, but these errors were encountered:
Hello! Thanks to those who contributed the TypeScript definitions, they're very useful. I did run into what looks like a problem with the
PromiseStateMapping
andFunctionMapping
definitions. They look like:The two types
and
appear to need an
| undefined
appended to them. Without this, I get (at least with TypeScript 3.3.3) type errors withconnect()
whenever the refetch props of the component are declared as optional with?
. But all refetch props need to be declared optional, since otherwise users of the component would have to pass them in. Does this sound right or am I missing something?The text was updated successfully, but these errors were encountered: