1771771771
Denoβ€’4y agoβ€’
1 reply
177177177

weird interface

how can a class implement this interface
interface I {
  (): void
  type: string
}

or a
const

i accidently did this
const a = () => {}

a.type = 'ok'

and it changed
a
's type to
{ (): void; type: string }
Was this page helpful?