Skip to content

Instantly share code, notes, and snippets.

@jthodge
Forked from maxchehab/example.ts
Last active December 21, 2019 03:01
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 jthodge/9a25f7b10e33c6c31db9d8d231bb857c to your computer and use it in GitHub Desktop.
Save jthodge/9a25f7b10e33c6c31db9d8d231bb857c to your computer and use it in GitHub Desktop.
type Sum = (x: number, y: number) => number;
export function CreateSum(): Sum {
return function(x: number, y: number): number {
return x + y;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment