itsthatguy / avatars-api-middleware

The express middleware for our avatars service
http://avatars.adorable.io
Other
749 stars 96 forks source link

Refactors on top of typescript #94

Closed rylnd closed 5 years ago

rylnd commented 5 years ago

93 removes babel and adds typescript; this actually implements some typing, cleans up the code a bit, and also publishes our types.

One note: since the only thing that we export is our router middleware, the declarations are sort of useless right now. Since we don't include @types/express in our package, the declarations are especially useless: the middleware just comes through as any.