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
I was wondering if this decision, typing it as Router, was intentional, and maybe it would be better to provide its real type so as not to force for explicit type casting in the client code?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I figured that the
router
property provided bySpectatorRouting
is, in fact, aSpyObj<RouterStub>
:spectator/projects/spectator/src/lib/spectator-routing/initial-module.ts
Line 21 in f966fb3
I was wondering if this decision, typing it as
Router
, was intentional, and maybe it would be better to provide its real type so as not to force for explicit type casting in the client code?Beta Was this translation helpful? Give feedback.
All reactions