Releases: Buslowicz/twc
0.5.1
TWC v 0.5.1
What's new
From now on please include twc/decorators/polymer.d.ts
in your tsconfig.json
instead of twc/types/polymer.decorators.d.ts
. Polymer declarations are no longer included. Please include 3rd party types (use official declarations once they are out, until then I recommend polymer2-types). The deprecated declarations will still function and include a copy of polymer2-types, but will be removed in the future.
Issues fixed
#118 TS2345 when you specify your element name
#119 Unknown error when using moduleResulotion: node
#121 HTMLElement life-cycle callbackss
0.5.0
TWC v 0.5.0
What's new
Added mixins support with native markup. Example:
const mixinA = (Super1) => class extends Super1 {
@attr() name: string;
@attr() surname: string;
@attr() @notify() @compute((name: string, surname: string) => `${name} ${surname}`) fullName: string;
};
Please note: Mixins are not components and they do not include templates or styles. That means @CustomElement()
, @style()
and @template()
mixins will not work.
Issues fixed
#97 TypeScript mixin is not transformed as a complete Polymer module definition