Skip to content

Can not use Property Decorator in mixin (Decorators are not valid here) #80

Open
@jogibear9988

Description

I've a mixin like this

type Constructor<T> = { new (...args: any[]): T };

function VisuElement<B extends Constructor<any>>(base: B) {
    return class extends base {
     constructor(...args: any[]) {
         super();
         this._ve = true;
         this._veBindings = [];
     }

    static get properties() {
        return {
            unbindOnUnload: Boolean //Needed when a Element is created via a Dom repeat
        }

here it is not possible to replace static get properties() with decorator. => "Decorators are not valid here"

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions