Skip to content

Instantly share code, notes, and snippets.

@briancavalier
Last active December 14, 2015 11:50
Show Gist options
  • Save briancavalier/5082297 to your computer and use it in GitHub Desktop.
Save briancavalier/5082297 to your computer and use it in GitHub Desktop.
/**
* @externs
* @license MIT License (c) copyright 2011-2013 original author or authors
*/
function when(){}
/** @return {Deferred} */
when.defer = function(){};
when.resolve = function(){};
when.reject = function(){};
when.join = function(){};
when.all = function(){};
when.map = function(){};
when.reduce = function(){};
when.any = function(){};
when.some = function(){};
when.isPromise = function(){};
function Deferred(){}
Deferred.prototype.promise = {};
Deferred.prototype.resolve = function(){};
Deferred.prototype.reject = function(){};
Deferred.prototype.notify = function(){};
Deferred.prototype.resolver = {
resolve: function () {},
reject: function () {},
notify: function () {}
};
function define() {}
define.amd = {};
var module = { exports: {} };
module.exports = {};
this.when = function(){};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment