marko-js / run

The Marko application framework
MIT License
142 stars 9 forks source link

fix: improve MarkoRun.route type to return the actual value passed #70

Closed rturnq closed 1 month ago

rturnq commented 1 month ago

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: