mostjs / dom-event Goto Github PK
View Code? Open in Web Editor NEWStreamlined DOM Events for most.js
License: MIT License
Streamlined DOM Events for most.js
License: MIT License
We could improve the individual event types such as click
by adjusting it to
click(node: EventTarget, useCapture?: boolean): Stream<MouseEvent>;
This would avoid the need to do manual typecasting for users.
It may also be possible to improve the typings of domEvent
with at least a change to
domEvent<T extends Event>(eventType: string, node: EventTarget, useCapture?: boolean): Stream<T>
but we may want to consider typing eventType
with a union type of all of the standardized event types. I have an existing list of such types here.
Hi, I keep getting this warning along with an unmet peer depedency warning for [email protected] in my project, despite having the most recent releases of both installed.
I'm not sure what the problem is exactly, but I'm guessing the most@^0.19.0 is only good for up to the highest version of the same major version?
Should we update the @^version for most here or is there another way to get rid of this warning?
I noticed that the latest version at GitHub has not been published to npm, after getting this warning:
npm WARN @most/[email protected] requires a peer of most@^0.18.0 but none was installed.
Publish this library to NPM
So we can all use it ;)
I’m trying to use dom-event with Chokidar, because it’s the closest thing I’ve found to fromEvent
from Most v.1. But there are two problems with it:
addEventListener
method, only addListener
and on
.DOM event
for events that have nothing to do with DOM.I could live with the second one, but can we do something about the first? For instance, customize the method that adds a listener to a “node”? Or is it outside of dom-event’s scope and it’s better to just copy domEvent
and create a separate fromEvent package?
Hi, are you up for publishing a new version to NPM so type definitions are included?
I am working more with TypeScript, and the @most/dom-event
type defs are required for a successful build.
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.