@esposter/shared 1.32.0 → 1.33.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +9 -1
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { Except } from 'type-fest';
2
+
1
3
  declare const parseXmlString: (xmlString: string) => Promise<any>;
2
4
 
3
5
  declare const parseXmlValue: (value: string) => string | number | boolean;
@@ -38,6 +40,12 @@ type CamelToKebab<S extends string> = S extends `${infer T}${infer U}` ? U exten
38
40
 
39
41
  declare const toKebabCase: <T extends string>(string: T) => CamelToKebab<T>;
40
42
 
43
+ type FunctionProperties<T> = {
44
+ [K in keyof T]: T[K] extends Function ? K : never;
45
+ };
46
+
47
+ type ExcludeFunctionProperties<T> = Except<T, FunctionProperties<T>[keyof T]>;
48
+
41
49
  type KebabToCamel<S extends string> = S extends `${infer T}-${infer U}` ? `${T}${Capitalize<KebabToCamel<U>>}` : S;
42
50
 
43
51
  type TupleSplitHead<T extends unknown[], N extends number> = T["length"] extends N ? T : T extends [...infer R, unknown] ? TupleSplitHead<R, N> : never;
@@ -59,4 +67,4 @@ declare const UUIDV4_REGEX: RegExp;
59
67
 
60
68
  declare const uuidValidateV4: (uuid: string) => boolean;
61
69
 
62
- export { type CamelToKebab, ID_SEPARATOR, InvalidOperationError, type KebabToCamel, type MergeObjectsStrict, NIL, NotFoundError, NotInitializedError, Operation, type SkipFirst, type TakeFirst, type TupleSlice, type TupleSplit, type TupleSplitHead, type TupleSplitTail, UUIDV4_REGEX, capitalize, exhaustiveGuard, isPlainObject, mergeObjectsStrict, parseXmlString, parseXmlValue, toKebabCase, uuidValidateV4 };
70
+ export { type CamelToKebab, type ExcludeFunctionProperties, type FunctionProperties, ID_SEPARATOR, InvalidOperationError, type KebabToCamel, type MergeObjectsStrict, NIL, NotFoundError, NotInitializedError, Operation, type SkipFirst, type TakeFirst, type TupleSlice, type TupleSplit, type TupleSplitHead, type TupleSplitTail, UUIDV4_REGEX, capitalize, exhaustiveGuard, isPlainObject, mergeObjectsStrict, parseXmlString, parseXmlValue, toKebabCase, uuidValidateV4 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esposter/shared",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "description": "A library that contains shared typescript code.",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/Esposter/Esposter#readme",
@@ -26,7 +26,7 @@
26
26
  "export:gen": "ctix build --config ../configuration/.ctirc-ts"
27
27
  },
28
28
  "devDependencies": {
29
- "@esposter/configuration": "1.32.0"
29
+ "@esposter/configuration": "1.33.0"
30
30
  },
31
- "gitHead": "17231a483b46cabe387f9941f6d3497530e16632"
31
+ "gitHead": "d01e1714f103bccb7ecb045091e794da24e1ff2c"
32
32
  }