Created
June 17, 2020 08:32
-
-
Save deleteman/2e077f43a6479c0a8f5ea50a8919a126 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Callable { | |
call() { | |
console.log("Call!") | |
} | |
} | |
abstract class Activable { | |
active: boolean = false | |
activate() { | |
this.active = true | |
console.log("Activating…") | |
} | |
deactive() { | |
this.active = false | |
console.log("Deactivating…") | |
} | |
} | |
class MyClass { | |
constructor() { | |
} | |
} | |
interface MyClass extends Callable, Activable {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment