Created
July 13, 2017 08:54
-
-
Save amatiasq/a6f6ff76a132d49a7aba425c3d0225e2 to your computer and use it in GitHub Desktop.
This file contains 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
type myMethodSignature<T> = (value: T) => void; | |
class Test { | |
alias: myMethodSignature<T>; | |
constructor() { | |
this.alias = this.myMethod.bind(this); | |
} | |
myMethod<T>(value: T): void {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment