typescript-mix icon indicating copy to clipboard operation
typescript-mix copied to clipboard

Option to add the mixin under a namespace?

Open ktalebian opened this issue 6 years ago • 1 comments

Is it possible to define the mixin under a different key space?

class Main {
    @use(OtherClass, 'other') this;
}

such that

const m = new Main();
m.other.*

ktalebian avatar Apr 12 '19 22:04 ktalebian

i guess this would be a breaking change, as the current syntax for @use() defines all parameters as the classes to be mixed in.. So one would need something like:

class Main {
   @use( { OtherClass, 'other' }, {AnotherClass, 'another' } ) this;
}

again, this would be breaking as well

johannesschobel avatar May 29 '19 09:05 johannesschobel