Created
February 11, 2018 07:03
-
-
Save kutliev/dec46e182cc58b5c8436668995c1ed79 to your computer and use it in GitHub Desktop.
Entity class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class Entity { | |
id: string; | |
title: string; | |
slug: string; | |
content: string; | |
constructor(id: string, title: string, slug: string, content: string) { | |
this.id = id; | |
this.title = title; | |
this.slug = slug; | |
this.content = content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment