Closed kylecordes closed 6 years ago
switchpath returns this:
export interface SwitchPathReturn { path: string | null; value: any | null; }
while cyclic expects this:
export interface RouteMatcherReturn { path: string; value: any; }
I'm not deep enough in to know whether this is just a matter of adjusting the type in cycle to keep up with switchpath, or if the possible null return requires more changes.
+1 as it would be good to lose this cast - given switch-path is default
Will fix that later, easy solution
Published in 5.1.1
switchpath returns this:
while cyclic expects this:
I'm not deep enough in to know whether this is just a matter of adjusting the type in cycle to keep up with switchpath, or if the possible null return requires more changes.