Skip to content

Instantly share code, notes, and snippets.

@consoledotblog
Forked from Nijhazer/bawts-08.js
Created January 14, 2016 17:15
Show Gist options
  • Save consoledotblog/677b92912b697e6219ec to your computer and use it in GitHub Desktop.
Save consoledotblog/677b92912b697e6219ec to your computer and use it in GitHub Desktop.
Building Applications with TypeScript - Snippet 08
export class Task {
public name: string;
public active: boolean;
public render() : string {
if (this.active) {
return '[Inactive] ' + this.name;
}
return this.name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment