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…

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, .


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2024-03-29T01:23:39+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 2024-03-29T01:23:39+00:00,<https://www.scien.cx/2012/10/02/pubsub-in-typescript/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » PubSub in TypeScript. [Internet]. [Accessed 2024-03-29T01:23:39+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 2024-03-29T01:23:39+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: 2024-03-29T01:23:39+00:00]
rf:citation
» PubSub in TypeScript | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2012/10/02/pubsub-in-typescript/ | 2024-03-29T01:23:39+00:00
https://github.com/addpipe/simple-recorderjs-demo