web-component-wrapper 0.0.508 → 0.0.509

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 +1 -1
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.509",
4
4
  "description": "Generic web-component base class and framework specific wrapper.",
5
5
  "keywords": [
6
6
  "component",
package/type.d.ts CHANGED
@@ -17,7 +17,7 @@ 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
22
  export type ValidationMapping = ValidationMap<PropertyType>;
23
23
  export type PropertiesValidationMap = Mapping<ValueOf<typeof PropertyTypes>>;