Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* @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