export {default as Bluebird} from 'bluebird' // import {Deferred} from "@3fv/deferred" // // export class PromiseEx extends Bluebird { // // //static delay = Deferred.delay // } // // const PromiseEx = Object.assign(cloneDeep(Promise), { // defer // }) /** * Wrap action function so compiler allows it * * @param fn * @constructor */ export function Promised(fn:(...args:Args) => T | Promise):Promise { return ((...args:Args) => { return fn(...args) }) as any }