Skip to content

Instantly share code, notes, and snippets.

@mikepatrick
Created November 16, 2017 03:47
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 mikepatrick/b109ed865d929bec4f7af8f7d06d46f3 to your computer and use it in GitHub Desktop.
Save mikepatrick/b109ed865d929bec4f7af8f7d06d46f3 to your computer and use it in GitHub Desktop.
.ts file containing interface and code.
interface DummyContent {
name: string;
age?: number;
}
class DummyClass {
printMessage = () => {
console.log("message");
}
}
var dummy = new DummyClass();
dummy.printMessage();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment