UNPKG

routing-controllers

Version:

Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage for Express / Koa using TypeScript.

7 lines 224 B
/** * Checks if given value is a Promise-like object. */ export function isPromiseLike(arg) { return arg != null && typeof arg === 'object' && typeof arg.then === 'function'; } //# sourceMappingURL=isPromiseLike.js.map