Skip to content

Instantly share code, notes, and snippets.

@Nijhazer
Created December 2, 2015 03:17
Show Gist options
  • Save Nijhazer/7e6874201d67fecd917f to your computer and use it in GitHub Desktop.
Save Nijhazer/7e6874201d67fecd917f to your computer and use it in GitHub Desktop.
Building Applications with TypeScript - Snippet 04
var TaskManager = {
getTask: function(id) {
id = parseInt(id);
// issue an API request to fetch this task
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment