function type expression
// โญ โญ๏ธ func type expr โฎ
type GreetFunction = (a: string) => void ;
function greeter(fn: GreetFunction) {
// ...
}
Last updated
Was this helpful?
// โญ โญ๏ธ func type expr โฎ
type GreetFunction = (a: string) => void ;
function greeter(fn: GreetFunction) {
// ...
}
Last updated
Was this helpful?