Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.