@tracktor/shared-module 2.1.1 → 2.1.2

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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
1
  # [Versions](https://github.com/Tracktor/shared-module/releases)
2
2
 
3
- ## v2.1.1
4
- - **[feat]** - orval config improvements
3
+ ## v2.1.2
4
+ - **[feat]** - orval config return type
@@ -24,6 +24,9 @@ interface CustomOrvalConfig {
24
24
  */
25
25
  operationsToGenerateInfiniteQueryHook?: string[];
26
26
  }
27
+ interface OrvalConfig {
28
+ [key: string]: CustomOrvalConfig;
29
+ }
27
30
  /**
28
31
  * Convert a string to capitalize
29
32
  * @param method
@@ -49,5 +52,5 @@ export declare const getOrvalOperationName: (_: any, route: string, method: stri
49
52
  /**
50
53
  * Get the orval config required for the generation
51
54
  */
52
- export declare const getOrvalConfig: (config?: CustomOrvalConfig | CustomOrvalConfig[]) => CustomOrvalConfig | undefined;
55
+ export declare const getOrvalConfig: (config?: CustomOrvalConfig | CustomOrvalConfig[]) => OrvalConfig;
53
56
  export default getOrvalConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracktor/shared-module",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "types": "./dist/main.d.ts",