express typescript controllr class npm code example Example: typescript express next middleware type import * as express from 'express' next: express.NextFunction