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
import {StoryEntryType} from './StoryEntryType'; | |
export class StoryEntry { | |
EntryType: StoryEntryType; | |
Text: string; | |
constructor(EntryType: StoryEntryType, Text: string) { | |
this.EntryType = EntryType; | |
this.Text = Text; | |
} | |
} |
FYI variables by default are public, so no need to specify that. Also, for angulers could be a little confusing if you declare the variables after the constructor.
@devpato - good feedback. Incorporated.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FYI variables by default are public, so no need to specify that. Also, for angulers could be a little confusing if you declare the variables after the constructor.