Skip to content

Instantly share code, notes, and snippets.

@amatiasq
Created July 13, 2017 08:54
Show Gist options
  • Select an option

  • Save amatiasq/a6f6ff76a132d49a7aba425c3d0225e2 to your computer and use it in GitHub Desktop.

Select an option

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