tc39/proposal-emitter

Typings

Open

#2 创建于 2019年5月17日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人) (4 fork)github user discovery
help wanted

仓库指标

Star
 (92 star)
PR 合并指标
 (PR 指标待抓取)

描述

There was a tonne of helpful feedback from @briancavalier on the exploratory API, trade-offs and internal workings I plan to look into. One thing he mentioned that would be a great first issue for someone else to pick is adding typings to the library.

If you apply an operator on an iterable source, the resulting composed emitter is also iterable. However, not every conceivable emitter is iterable and/or async iterable. This should be easy to statically identify and would make it easier for people to learn.

This sort of information can also be leveraged internally for optimisations, which I wasn't aware of e.g. simplifying a chain of emitters without any visible difference.

贡献者指南