Skip to content

Instantly share code, notes, and snippets.

@lisp-ceo
Last active December 19, 2015 16:39
Show Gist options
  • Save lisp-ceo/5985648 to your computer and use it in GitHub Desktop.
Save lisp-ceo/5985648 to your computer and use it in GitHub Desktop.
Interesting quirks in the TypeScript compiler. Will invoke closures instead of vanilla functions.
(function (workers) {
var Waiter = (function () {
function Waiter(messageid, delegate) {
this.messageid = messageid;
this.delegate = delegate;
}
return Waiter;
})();
workers.Waiter = Waiter;
})(appex.workers || (appex.workers = {}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment