web-component-wrapper 0.0.336 → 0.0.337

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-wrapper",
3
- "version": "0.0.336",
3
+ "version": "0.0.337",
4
4
  "description": "Generic web-component base class and framework specific wrapper.",
5
5
  "keywords": [
6
6
  "component",
package/type.d.ts CHANGED
@@ -12,8 +12,8 @@ export declare type CompiledDomNodeTemplateItem = {
12
12
  export declare type CompiledDomNodeTemplate<NodeType = Node> = Map<NodeType, CompiledDomNodeTemplateItem>;
13
13
  export declare type EventCallbackMapping = Map<string, () => void>;
14
14
  export declare type EventMapping<ExternalPropertiesType = Mapping<unknown>, InternalPropertiesType = Mapping<unknown>> = [ExternalPropertiesType, InternalPropertiesType] | ExternalPropertiesType;
15
- export declare type EventMapper = (..._parameter: Array<unknown>) => EventMapping;
16
- export declare type EventToPropertyMapping = Mapping<true | EventMapper>;
15
+ export declare type EventMapper<E = Mapping<unknown>, I = Mapping<unknown>> = (..._parameter: Array<unknown>) => EventMapping<E, I>;
16
+ export declare type EventToPropertyMapping<E = Mapping<unknown>, I = Mapping<unknown>> = Mapping<true | EventMapper<E, I>>;
17
17
  export declare type AttributesReflectionConfiguration = Array<string> | Map<string, string | ValueOf<typeof PropertyTypes>> | string | Mapping<ValueOf<typeof PropertyTypes> | string>;
18
18
  export declare type ScopeDeclaration = Array<string> | Mapping<unknown>;
19
19
  export declare type PreCompiledItem = {