lib/di.js
function providePromise(obj, providePromiseName) {
    if(!isString(providePromiseName)) {
      throw new Error('Must provide string as name of promised module');
    }
    di.annotate(obj, new di.ProvidePromise(providePromiseName));
  }
function providePromise(obj, providePromiseName) {
    if(!isString(providePromiseName)) {
      throw new Error('Must provide string as name of promised module');
    }
    di.annotate(obj, new di.ProvidePromise(providePromiseName));
  }
function providePromise ( obj , providePromiseName ) { if ( ! isString ( providePromiseName ) ) { throw new Error ( 'Must provide string as name of promised module' ) ; } di . annotate ( obj , new di . ProvidePromise ( providePromiseName ) ) ; }
Apply provide promise annotation to object
@private
@param {*} obj
@param {string} providePromiseName string to apply as provide promise annotation
Apply provide promise annotation to object