PubSub in TypeScript

Pub/Sub is my Hello World, I’ve done it not once but twice in JavaScript and once in CoffeeScript (although technically that has a 3rd version in JavaScript at the start of the post :P).
Well you may have heard of Microsoft’s answer to appl…


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

Pub/Sub is my Hello World, I’ve done it not once but twice in JavaScript and once in CoffeeScript (although technically that has a 3rd version in JavaScript at the start of the post :P). Well you may have heard of Microsoft’s answer to application-scale JavaScript called TypeScript so I thought I’d write a pub/ sub library in it too. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 module PubSub { var registry = {}; var pub = function(name: string, .


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2023-09-30T07:08:19+00:00) » PubSub in TypeScript. Retrieved from https://www.scien.cx/2012/10/02/pubsub-in-typescript/.
MLA
" » PubSub in TypeScript." Posts on LINQ to Fail | Sciencx - Tuesday October 2, 2012, https://www.scien.cx/2012/10/02/pubsub-in-typescript/
HARVARD
Posts on LINQ to Fail | Sciencx Tuesday October 2, 2012 » PubSub in TypeScript., viewed 2023-09-30T07:08:19+00:00,<https://www.scien.cx/2012/10/02/pubsub-in-typescript/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » PubSub in TypeScript. [Internet]. [Accessed 2023-09-30T07:08:19+00:00]. Available from: https://www.scien.cx/2012/10/02/pubsub-in-typescript/
CHICAGO
" » PubSub in TypeScript." Posts on LINQ to Fail | Sciencx - Accessed 2023-09-30T07:08:19+00:00. https://www.scien.cx/2012/10/02/pubsub-in-typescript/
IEEE
" » PubSub in TypeScript." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2012/10/02/pubsub-in-typescript/. [Accessed: 2023-09-30T07:08:19+00:00]
rf:citation
» PubSub in TypeScript | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2012/10/02/pubsub-in-typescript/ | 2023-09-30T07:08:19+00:00
https://github.com/addpipe/simple-recorderjs-demo