@marcoms/make-element
Advanced tools
Comparing version 4.1.6 to 4.1.7
@@ -46,3 +46,3 @@ export interface ArbitraryFn { | ||
export interface IdMap { | ||
[index: string]: HTMLElement; | ||
[index: string]: IdentifiedElement; | ||
} | ||
@@ -53,6 +53,8 @@ export interface CustomElementClass extends Function { | ||
export interface CustomElement extends HTMLElement { | ||
$: IdMap; | ||
$?: IdMap; | ||
[index: string]: any; | ||
} | ||
export interface IdentifiedElement extends CustomElement { | ||
} | ||
declare function makeElement(def?: ElementDef): CustomElementClass; | ||
export default makeElement; |
{ | ||
"name": "@marcoms/make-element", | ||
"version": "4.1.6", | ||
"version": "4.1.7", | ||
"description": "Create custom elements without boilerplate", | ||
@@ -5,0 +5,0 @@ "main": "build/make-element.js", |
@@ -40,3 +40,3 @@ export interface ArbitraryFn { (this: CustomElement, ...args: any[]): any; } | ||
export interface IdMap { | ||
[index: string]: HTMLElement; | ||
[index: string]: IdentifiedElement; | ||
} | ||
@@ -49,6 +49,11 @@ | ||
export interface CustomElement extends HTMLElement { | ||
$: IdMap; | ||
$?: IdMap; | ||
[index: string]: any; | ||
} | ||
// includes HTMLElement and CustomElement possibilities | ||
// `interface` is used instead of `type` so that the interface alias is used | ||
// by code intelligence tools | ||
export interface IdentifiedElement extends CustomElement {} | ||
// private interfaces | ||
@@ -55,0 +60,0 @@ |
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
204395
1417