Skip to content

Instantly share code, notes, and snippets.

@IntegerMan

IntegerMan/StoryEntry.ts

Last active Feb 6, 2020
Embed
What would you like to do?
import {StoryEntryType} from './StoryEntryType';
export class StoryEntry {
EntryType: StoryEntryType;
Text: string;
constructor(EntryType: StoryEntryType, Text: string) {
this.EntryType = EntryType;
this.Text = Text;
}
}
@devpato

This comment has been minimized.

Copy link

@devpato 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

This comment has been minimized.

Copy link
Owner Author

@IntegerMan IntegerMan 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.

@devpato - good feedback. Incorporated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.