Skip to content

Instantly share code, notes, and snippets.

@cpanuphan
Created September 19, 2018 03:26
Show Gist options
  • Save cpanuphan/8a6fb57bc29de521f043c2d6c75056fc to your computer and use it in GitHub Desktop.
Save cpanuphan/8a6fb57bc29de521f043c2d6c75056fc to your computer and use it in GitHub Desktop.
export class TodoItem {
id: number;
name: string;
isComplete: boolean;
constructor(values: Object = {}) {
Object.assign(this, values);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment