Open danielweck opened 6 years ago
For your information, I forked your project in order to correct a few issues with the TypeScript compiler (implicit function return types). I also added the aforementioned event.preventUpdate
property.
See:
https://github.com/Joylei/riot-typed/compare/master...danielweck:master
@danielweck
thanks, I'll take a look.
Hello, thank you for this project :)
I am using the
riot-typed
package that is currently published on the NPM repository ( https://www.npmjs.com/package/riot-typed ), but instead of using Typings I simply reference your main Riot type definitions from my top-leveldeclarations.d.ts
:I added this simple extension so that the
preventUpdate
property (which RiotJS attaches to DOM events) is typed properly:Say I have the following Riot Tag specification:
...I can then use the
RiotEvent
in place ofMouseEvent
(or more generally,lib.dom.Event
):