Created
February 29, 2020 06:49
-
-
Save Farenheith/8affe74fc9368afaef7e0fab5dcccdc6 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
export function anonymousExample(callbacker: (x: (v: number) => void) => void) { | |
callbacker((v) => { | |
if (v === 1) { | |
console.log('first v!'); | |
} else { | |
console.log('another v!'); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment