Commit Graph

6 Commits

Author SHA1 Message Date
Hum3
a959f414dd
little change
`import { router, get, ServerRequest, ServerResponse } from 'microrouter';
const notfound = (req: ServerRequest, res: ServerResponse) => send(res, 404, 'Not found route');
export default router(
    get('/', notfound)`
);
2018-03-11 08:57:10 -03:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Andy
954ee278de
Update TypeScript Versions to be at least as high as dependencies' versions (#21288)
* Update `TypeScript Version`s to be at least as high as dependencies' versions

* Run through again
2017-11-08 09:12:14 -08:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Mathieu Dutour
2a641a97bf add microrouter types (#18500)
* add microrouter types

* add params field to IncomingMessage

* fix lint

* use micro types for RequestHandler
2017-08-01 10:26:32 -07:00