@seatup/common 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,3 @@
1
- export declare function convertEnum<T extends object>(target: T, value: string): T[keyof T];
1
+ export declare function convertEnum<TEnum extends {
2
+ [key: string]: string | number;
3
+ }, TValue extends string>(enumObj: TEnum, value: TValue): TEnum[keyof TEnum];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.convertEnum = convertEnum;
4
- function convertEnum(target, value) {
5
- return target[value];
4
+ function convertEnum(enumObj, value) {
5
+ return enumObj[value];
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seatup/common",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Core shared components for SeatUp microservice ecosystem",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",