MarkoRun.route is an identity function that is used to provide types to to users' middleware and handler functions. It accepts handler functions and arrays of handler functions. This change makes it generic to return the type of the actual object you passed.
Motivation and Context
Screenshots (if appropriate):
Checklist:
[ ] I have updated/added documentation affected by my changes.
Description
MarkoRun.route
is an identity function that is used to provide types to to users' middleware and handler functions. It accepts handler functions and arrays of handler functions. This change makes it generic to return the type of the actual object you passed.Motivation and Context
Screenshots (if appropriate):
Checklist: