Skip to content

Instantly share code, notes, and snippets.

@duaneleem
Last active January 20, 2018 05:45
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 duaneleem/d97d8ef8b9e59fd3d6607fdf85ad3ebf to your computer and use it in GitHub Desktop.
Save duaneleem/d97d8ef8b9e59fd3d6607fdf85ad3ebf to your computer and use it in GitHub Desktop.
Typescript Class Example
export class Example {
private strVariable: string;
constructor() {
// Something to do during init.
}
mtdNothing = (): string => {
return "I'm returning nothing.";
} // mtdNothing()
} // Example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment