i399exng1ts/post.ts

9 lines
136 B
TypeScript
Raw Permalink Normal View History

2017-05-17 18:36:09 +03:00
export class Post {
constructor(public title: string, public text: string) {}
2017-05-18 12:15:48 +03:00
getTitle() {
return this.title;
}
2017-05-17 18:36:09 +03:00
}