Last active
December 14, 2015 11:50
-
-
Save briancavalier/5082297 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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