UNPKG

@ayanaware/bento

Version:

Modular runtime framework designed to solve complex tasks

11 lines 520 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isPromise = void 0; // I can't think of any types that might have .then and .catch so has to be unsafe any access here // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types function isPromise(fn) { // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access return typeof fn === 'object' && typeof fn.then === 'function'; } exports.isPromise = isPromise; //# sourceMappingURL=isPromise.js.map