Skip to content

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

Description

@jogibear9988

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions