Coder Social home page Coder Social logo

dom-event's People

Contributors

brandonpayton avatar briancavalier avatar davidchase avatar greenkeeperio-bot avatar hath995 avatar johnmichel avatar kanitsharma avatar trysound avatar tylors avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dom-event's Issues

Feature Suggestion: Improve TypeScript Definitions

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.

@most/[email protected] requires a peer of most@^0.19.0 but none was installed.

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?

Publish v1.2.0 to npm

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 to NPM

Overview

Publish this library to NPM

Motivation

So we can all use it ;)

Feature: More generic fromEvent

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:

  1. Chokidar watcher doesn’t have addEventListener method, only addListener and on.
  2. It feels kinda silly to use something called 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?

Published version with type definitions

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.