177177177
1771771773y ago

weird interface

how can a class implement this interface
interface I {
(): void
type: string
}
interface I {
(): void
type: string
}
or a const i accidently did this
const a = () => {}

a.type = 'ok'
const a = () => {}

a.type = 'ok'
and it changed a's type to { (): void; type: string }
1 Reply
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View