tannerntannern / ts-mixer

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

Can it work with Tsyringe Decorators? #46

Closed jfavrod closed 2 years ago

jfavrod commented 2 years ago

The tsyringe package - a popular dependency injection framework - uses class (e.g. @injectable) and constructor parameter (e.g. @inject) decorators. Can ts-mixer work with these decorators? I've tried and I'm getting errors.

image image

tannerntannern commented 2 years ago

Hi @jfavrod, according to the features list only "class, method, and property decorators" are currently supported. Supporting parameter decorators would be a new feature that I won't have time to consider for quite awhile. I'd certainly be open to a PR to add this feature though!

jfavrod commented 2 years ago

@tannerntannern, thank you for the answer. I've done a little bit of work with decorators, we'll see about that PR.