Skip to content

Instantly share code, notes, and snippets.

@ankitamasand ankitamasand/function-types.js Secret
Created Apr 17, 2019

What would you like to do?
interface Order {
(customerId: number, modelId: number): boolean
let orderFn: Order = function (cId, mId) {
// processing the order
return true // processed successfully!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.