Skip to content

Instantly share code, notes, and snippets.

@maxchehab
Created December 10, 2019 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save maxchehab/3bcfd9f664ba10620f7cad822269a4c0 to your computer and use it in GitHub Desktop.
Save maxchehab/3bcfd9f664ba10620f7cad822269a4c0 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