Skip to content

Instantly share code, notes, and snippets.

@gatherKnowledge
Last active November 12, 2020 17:28
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 gatherKnowledge/b96d4ad97659404e9270eaad69309e46 to your computer and use it in GitHub Desktop.
Save gatherKnowledge/b96d4ad97659404e9270eaad69309e46 to your computer and use it in GitHub Desktop.
signature
type funcType = (a: string) => (b: string) => void;
const realizeFunc: funcType = (a: string) => {
return (b: string) => {
console.log(b);
}
}
realizeFunc('')('hello world!');
// hello world!
@gatherKnowledge
Copy link
Author

gatherKnowledge commented Nov 12, 2020

funcType은 함수를 리턴해주는 함수이다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment