proposal: rewrite source in typescript
See original GitHub issueProposing refresh ⟳ to rewrite core into TypeScript
It would be great to give this library a refresh ⟳ since its initial implementation design, additionally bringing some of the new ES2018+ features. I am more than willing to revel my efforts to achieve these goals.
This issue should serve the purpose of the TS rewrite proposal discussions and outline for new architectural updates (if any) and the new capabilities and/or ES+TS features desired.
ES/TS feature harnessing proposals
- ✓ [ ] 🅧 [ ] Generators or Iterators
function* || closure
,yield
,next()
for emit augment - ✓ [ ] 🅧 [ ] TypeScript
private || protected
property accessors - ✓ [ ] 🅧 [ ] ES
#private
truly private names, solves #178 - ✓ [ ] 🅧 [ ] (experimental) decorator support
- … to add more
Architectural change proposals
- ✓ [ ] 🅧 [ ] Functional programming for named module consumption
- ✓ [ ] 🅧 [ ] Functional composition instead of inheritance like developit/mitt
- ✓ [ ] 🅧 [ ] Handler result memoization for observability
- … to add more
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Writing Good Design Proposals · microsoft/TypeScript Wiki
First, refer to the TypeScript Design Goals page and make sure your proposal fits within those guidelines. Next, see if there are any...
Read more >A Proposal For Type Syntax in JavaScript - TypeScript
The idea of this proposal is that JavaScript could carve out a set of syntax for types that engines would entirely ignore, but...
Read more >Typescript Feature Proposal. Force Override Declarations
Typescript allows you to create a global.d.ts to override declarations, however that is on a global level. The proposal. We should use an ......
Read more >babel-plugin-transform-typescript-metadata - npm package
Babel plugin to emit decorator metadata like typescript compiler For more information about how to use this package see README.
Read more >A Proposal for Type Syntax in JavaScript : r/typescript - Reddit
I think the goal of this proposal is more to support a fast development loop rather than affect production payloads. If you use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
IMHO there are no practical reasons to rewrite the lib in TS.
Yeah, TS seems like it’s popular, but personally I’d like to prioritize what the maintainers are comfortable with, so it might be best to go with a new TS-specific EventEmitter library rather than changing this one so drastically.
Thank you for floating the idea by though!
Gonna close this for now unless some more maintainers are interested in discussing this further. 😁