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?