web-component-wrapper 0.0.359 → 0.0.360

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 +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-wrapper",
3
- "version": "0.0.359",
3
+ "version": "0.0.360",
4
4
  "description": "Generic web-component base class and framework specific wrapper.",
5
5
  "keywords": [
6
6
  "component",
package/type.d.ts CHANGED
@@ -18,7 +18,9 @@ export declare type EventMapping<ExternalProperties extends Mapping<unknown> = M
18
18
  export declare type EventMapper<E extends Mapping<unknown> = Mapping<unknown>, I extends Mapping<unknown> = Mapping<unknown>, P extends Array<unknown> = Array<unknown>> = (..._parameters: P) => EventMapping<E, I>;
19
19
  export declare type EventToPropertyMapping<E extends Mapping<unknown> = Mapping<unknown>, I extends Mapping<unknown> = Mapping<unknown>, P extends Array<unknown> = Array<unknown>> = Mapping<true | EventMapper<E, I, P>>;
20
20
  export declare type PropertyConfiguration = string | ValueOf<typeof PropertyTypes>;
21
- export declare type PropertiesConfiguration = Mapping<PropertyConfiguration> & ValidationMap<PropertyConfiguration>;
21
+ export declare type ValidationMapping = ValidationMap<ValueOf<typeof PropertyTypes>>;
22
+ export declare type PropertiesValidationMap = Mapping<ValueOf<typeof PropertyTypes>> & ValidationMapping;
23
+ export declare type PropertiesConfiguration = Mapping | PropertiesValidationMap;
22
24
  export declare type NormalizedAttributesReflectionConfiguration = Map<string, PropertyConfiguration>;
23
25
  export declare type AttributesReflectionConfiguration = (string | Array<string> | PropertiesConfiguration | NormalizedAttributesReflectionConfiguration);
24
26
  export declare type ScopeDeclaration = Array<string> | Mapping<unknown>;