tannerntannern / ts-mixer

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

Mix decorator is not copying the base class name #24

Closed bfbechlin closed 4 years ago

bfbechlin commented 4 years ago

First of all, I would like to congratz you for your useful package.

But I have a suggestion or maybe a bug fix, depending on whether it's a design or not xD I have been using the mix decorator in some classes for about 1 month and it's a bit confusing having all of them with the same name (MixedClass) as it's showed in the picture. Just copying the property constructor.name in the class returned by the decorator would solve this issue.

MixedClass issue

Best regards,

tannerntannern commented 4 years ago

Great idea! This should be relatively simple to implement if you wanted to open a PR. Otherwise I will take a closer look at this tomorrow.

tannerntannern commented 4 years ago

Fixed in 5.2.1