web-component-wrapper 0.0.508 → 0.0.510

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.508",
3
+ "version": "0.0.510",
4
4
  "description": "Generic web-component base class and framework specific wrapper.",
5
5
  "keywords": [
6
6
  "component",
package/type.d.ts CHANGED
@@ -17,9 +17,9 @@ export type EventMapping<ExternalProperties extends Mapping<unknown> = Mapping<u
17
17
  ] | Partial<ExternalProperties>);
18
18
  export 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> | Promise<EventMapping<E, I>>;
19
19
  export 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
- export type PropertyType = string;
20
+ export type PropertyType = string | ValueOf<typeof PropertyTypes>;
21
21
  export type PropertyConfiguration = PropertyType;
22
- export type ValidationMapping = ValidationMap<PropertyType>;
22
+ export type ValidationMapping = ValidationMap<ValueOf<typeof PropertyTypes>>;
23
23
  export type PropertiesValidationMap = Mapping<ValueOf<typeof PropertyTypes>>;
24
24
  export type PropertiesConfiguration = Mapping | PropertiesValidationMap;
25
25
  export type NormalizedAttributesReflectionConfiguration = Map<string, PropertyConfiguration>;