tannerntannern / ts-mixer

A small TypeScript library that provides tolerable Mixin functionality.
MIT License
379 stars 27 forks source link

How does it work under the hood? #30

Open yaquawa opened 4 years ago

yaquawa commented 4 years ago

How amazing...🎩🎩🎩🎩🎩

I've tried figured out how this thing works, soon I realized, this is too hard to understand for me.

Could you add some explanation for this on the README ?? Thanks!

tannerntannern commented 4 years ago

Hi @yaquawa, thanks for the interest in the library. I think some diagrams illustrating the two underlying mixing methods (prototype mixing and proxying) would be helpful for people to see, especially for those who would like make contributions. I haven't had time to work on this project lately, so it's hard to say when I'd be able to get around to it, but I will leave this issue open as a reminder. If anyone else would like to draft up some diagrams, PRs are welcome!

tannerntannern commented 4 years ago

In the meantime this might shine some light on how the mixing is accomplished under the hood

yaquawa commented 4 years ago

Thanks @tannerntannern ! I'm using this lib very hardly lately. Looking forward to having more materials for this on the readme page.💖