Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Don't do
interface Counter {
start(count:number) : string
reset(): void
}
// Do
interface Counter {
start: (count:number) => string
reset: () => string
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment