UNPKG

routing-controllers

Version:

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

10 lines 333 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isPromiseLike = isPromiseLike; /** * Checks if given value is a Promise-like object. */ function isPromiseLike(arg) { return arg != null && typeof arg === 'object' && typeof arg.then === 'function'; } //# sourceMappingURL=isPromiseLike.js.map