I'm a typescript beginner and I'm wonderig why I can't do this:
const obj: {
property1: string
property2: boolean
property3: function
}
I think the only alternative is by doing:
const obj: {
property1: string
property2: boolean
property3: any
}
Why I must implement the function on property3 inmediately on the object declaration?