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
It seems that It.isAnyObject() only works for objects that have a way to be constructed without arguments. Is it possible to make it work for constructors that require arguments, too?
I've tried changing the signature of It.isAnyObject() to accept a CtorWithArgs<T> instead and it seemed to work but I'm not sure if that doesn't have side effects.
The text was updated successfully, but these errors were encountered:
It seems that
It.isAnyObject()
only works for objects that have a way to be constructed without arguments. Is it possible to make it work for constructors that require arguments, too?I've tried changing the signature of
It.isAnyObject()
to accept aCtorWithArgs<T>
instead and it seemed to work but I'm not sure if that doesn't have side effects.The text was updated successfully, but these errors were encountered: