Skip to content

Instantly share code, notes, and snippets.

@bryantee
Created March 5, 2019 17:32
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 bryantee/fc9ae21459aa0599a552df1027e2182e to your computer and use it in GitHub Desktop.
Save bryantee/fc9ae21459aa0599a552df1027e2182e to your computer and use it in GitHub Desktop.
Which is preferable?
interface Foo {
handleSelect(field: string): (newSelected: string) => void;
}
// vs
interface Bar {
handleSelect: (field: string) => (newSelected: string) => void;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment