You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please change the signature of the Constructor<T> type (declared in decorators.ts) to use any instead of unknown so it can be used to create mixins. Without this change, anyone using lit-element will have to declare his/her own Constructor<T> type to create mixins.
exporttypeConstructor<T>={new(...args: unknown[]): T};// should be changed toexporttypeConstructor<T>={new(...args: any[]): T};// orexporttypeConstructor<T>=new(...args: any[])=>T;
Versions
lit-element: v0.6.1
The text was updated successfully, but these errors were encountered:
Issue
Please change the signature of the
Constructor<T>
type (declared in decorators.ts) to useany
instead ofunknown
so it can be used to create mixins. Without this change, anyone using lit-element will have to declare his/her ownConstructor<T>
type to create mixins.Versions
The text was updated successfully, but these errors were encountered: