react-query-lightbase-codegen 2.0.5 → 2.0.6
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.
|
@@ -71,6 +71,9 @@ function generateReactQuery(spec) {
|
|
|
71
71
|
});
|
|
72
72
|
return `import { queryOptions, skipToken } from '@tanstack/react-query';
|
|
73
73
|
import * as apiClient from './${(0, utils_1.specTitle)(spec)}.client';
|
|
74
|
+
// TEMPORARY: allows for backward compatibility imports
|
|
75
|
+
export * from './${(0, utils_1.specTitle)(spec)}.client';
|
|
76
|
+
|
|
74
77
|
const hasDefinedProps = <T extends { [P in K]?: any }, K extends PropertyKey>(
|
|
75
78
|
obj: T,
|
|
76
79
|
...keys: K[]
|
package/package.json
CHANGED
|
@@ -81,6 +81,9 @@ export function generateReactQuery(spec: OpenAPIV3.Document): string {
|
|
|
81
81
|
|
|
82
82
|
return `import { queryOptions, skipToken } from '@tanstack/react-query';
|
|
83
83
|
import * as apiClient from './${specTitle(spec)}.client';
|
|
84
|
+
// TEMPORARY: allows for backward compatibility imports
|
|
85
|
+
export * from './${specTitle(spec)}.client';
|
|
86
|
+
|
|
84
87
|
const hasDefinedProps = <T extends { [P in K]?: any }, K extends PropertyKey>(
|
|
85
88
|
obj: T,
|
|
86
89
|
...keys: K[]
|