Created
March 5, 2019 17:32
-
-
Save bryantee/fc9ae21459aa0599a552df1027e2182e to your computer and use it in GitHub Desktop.
Which is preferable?
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
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