wix-incubator / corvid-types

Type definitions for Corvid by Wix
MIT License
5 stars 3 forks source link

Add support for event properties #14

Open shoonia opened 4 years ago

shoonia commented 4 years ago

When I use event.target on handler action, the types don't find the properties

for example:

$w('#myCheckbox').onChange((event) => {
    if (event.target.checked) { // <<< here
        // do ...
    } else {
        // do ...
    }
});

I see an ts error

Property 'checked' does not exist on type 'Element'.ts(2339)

Thanks!