Last active
March 16, 2018 09:43
-
-
Save ThomasKruegl/b78a2d509faa434911d1c8640dd54b9c to your computer and use it in GitHub Desktop.
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
function someMethod(f: () => void) { | |
f(); | |
} | |
const myCallback = () => console.log("doing stuff…"); | |
someMethod(myCallback); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment