How can I assign a variable of a callable type (type with call signature)?
interface CallableType<T> {
(isSomething: boolean): T
description: string
}
const fn: CallableType<number> = ?
const result = fn(false)
How can I assign a value to fn
so that it can have a property description and it's callable at the same time?