Last active
November 12, 2020 17:28
-
-
Save gatherKnowledge/b96d4ad97659404e9270eaad69309e46 to your computer and use it in GitHub Desktop.
signature
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
type funcType = (a: string) => (b: string) => void; | |
const realizeFunc: funcType = (a: string) => { | |
return (b: string) => { | |
console.log(b); | |
} | |
} | |
realizeFunc('')('hello world!'); | |
// hello world! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
funcType은 함수를 리턴해주는 함수이다.