Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Last active February 6, 2020 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/be8618a9bf243f5a34d3720cabe7e4ac to your computer and use it in GitHub Desktop.
Save IntegerMan/be8618a9bf243f5a34d3720cabe7e4ac to your computer and use it in GitHub Desktop.
import {StoryEntryType} from './StoryEntryType';
export class StoryEntry {
EntryType: StoryEntryType;
Text: string;
constructor(EntryType: StoryEntryType, Text: string) {
this.EntryType = EntryType;
this.Text = Text;
}
}
@devpato
Copy link

devpato commented Feb 6, 2020

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.

@IntegerMan
Copy link
Author

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