A couple extra improvements that I forgot to do last time, most important is that Dollar.success' argument value had the type undefined, this actually forces typescript to never accept any value (aside from undefined), changed this to value?: any.
Also, I split ROUTE into 3 overloads, one for action: RouteAction, one for view: string,
and then without these arguments, but with the optional values flags and length left intact, this should cover the most common use cases for ROUTE.
A couple extra improvements that I forgot to do last time, most important is that
Dollar.success
' argumentvalue
had the typeundefined
, this actually forces typescript to never accept any value (aside fromundefined
), changed this tovalue?: any
.Also, I split
ROUTE
into 3 overloads, one foraction: RouteAction
, one forview: string
, and then without these arguments, but with the optional valuesflags
andlength
left intact, this should cover the most common use cases forROUTE
.