Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created November 7, 2019 04:35
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/a2c95635d17e707867663ea827d2f52a to your computer and use it in GitHub Desktop.
Save IntegerMan/a2c95635d17e707867663ea827d2f52a to your computer and use it in GitHub Desktop.
class Person {
// Extra logic here
}
class AwesomePerson extends Person {
public doAwesomeStuff(): void {
}
}
class Theme {
users: Person[] = [];
// Extra logic here
}
class DarkTheme extends Theme {
declare users: AwesomePerson[];
public doStuff() {
for (var user of this.users) {
user.doAwesomeStuff();
}
}
// Extra logic here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment