@polymer/lit-element
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -17,3 +17,5 @@ # Change Log | ||
## Unreleased | ||
## [0.7.1] - 2019-01-11 | ||
### Fixed | ||
* Fix decorator types causing compiler errors for TypeScript users. ([#432](https://github.com/Polymer/lit-element/pull/432)). | ||
@@ -20,0 +22,0 @@ ## [0.7.0] - 2019-01-10 |
@@ -18,2 +18,16 @@ /** | ||
}; | ||
interface ClassDescriptor { | ||
kind: 'class'; | ||
elements: ClassElement[]; | ||
finisher?: <T>(clazz: Constructor<T>) => undefined | Constructor<T>; | ||
} | ||
interface ClassElement { | ||
kind: 'field' | 'method'; | ||
key: PropertyKey; | ||
placement: 'static' | 'prototype' | 'own'; | ||
initializer?: Function; | ||
extras?: ClassElement[]; | ||
finisher?: <T>(clazz: Constructor<T>) => undefined | Constructor<T>; | ||
descriptor?: PropertyDescriptor; | ||
} | ||
/** | ||
@@ -38,3 +52,3 @@ * Class decorator factory that defines the decorated class as a custom element. | ||
*/ | ||
export declare const customElement: (tagName: string) => (classOrDescriptor: Constructor<HTMLElement> | ClassDescriptor) => any; | ||
export declare const customElement: (tagName: string) => (classOrDescriptor: ClassDescriptor | Constructor<HTMLElement>) => any; | ||
/** | ||
@@ -83,2 +97,3 @@ * A property decorator which creates a LitElement property which reflects a | ||
export declare const eventOptions: (options: AddEventListenerOptions) => any; | ||
export {}; | ||
//# sourceMappingURL=decorators.d.ts.map |
{ | ||
"name": "@polymer/lit-element", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Polymer based lit-html custom element", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
@@ -29,19 +29,1 @@ interface ShadyCSS { | ||
} | ||
// From the TC39 Decorators proposal | ||
interface ClassDescriptor { | ||
kind: 'class'; | ||
elements: ClassElement[]; | ||
finisher?: (clazz: Constructor<T>) => undefined | Constructor<T>; | ||
} | ||
// From the TC39 Decorators proposal | ||
interface ClassElement { | ||
kind: 'field'|'method'; | ||
key: PropertyKey; | ||
placement: 'static'|'prototype'|'own'; | ||
initializer?: Function; | ||
extras?; | ||
finisher?; | ||
descriptor?: PropertyDescriptor; | ||
} |
@@ -24,2 +24,20 @@ | ||
// From the TC39 Decorators proposal | ||
interface ClassDescriptor { | ||
kind: 'class'; | ||
elements: ClassElement[]; | ||
finisher?: <T>(clazz: Constructor<T>) => undefined | Constructor<T>; | ||
} | ||
// From the TC39 Decorators proposal | ||
interface ClassElement { | ||
kind: 'field'|'method'; | ||
key: PropertyKey; | ||
placement: 'static'|'prototype'|'own'; | ||
initializer?: Function; | ||
extras?: ClassElement[]; | ||
finisher?: <T>(clazz: Constructor<T>) => undefined | Constructor<T>; | ||
descriptor?: PropertyDescriptor; | ||
} | ||
const legacyCustomElement = | ||
@@ -26,0 +44,0 @@ (tagName: string, clazz: Constructor<HTMLElement>) => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
202112
2590
0