Skip to content

Instantly share code, notes, and snippets.

@amatiasq
Created July 13, 2017 08:54
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 amatiasq/a6f6ff76a132d49a7aba425c3d0225e2 to your computer and use it in GitHub Desktop.
Save amatiasq/a6f6ff76a132d49a7aba425c3d0225e2 to your computer and use it in GitHub Desktop.
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