Create typedmiddleware.coffee