rads-db 3.0.57 → 3.0.58
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/integrations/node.cjs +1 -1
- package/integrations/node.mjs +1 -1
- package/package.json +1 -1
package/integrations/node.cjs
CHANGED
|
@@ -106,7 +106,7 @@ function getIndexDts(schema, options) {
|
|
|
106
106
|
if (options.entitiesDir) {
|
|
107
107
|
imports.push(`import type { ${type.name} } from '../../${options.entitiesDir}/${key}'`);
|
|
108
108
|
}
|
|
109
|
-
rootFields.push(`${type.handle}: EntityMethods<${type.name}, '${type.name}'
|
|
109
|
+
rootFields.push(`${type.handle}: EntityMethods<${type.name}, '${type.name}'>`);
|
|
110
110
|
const fieldsArray = Object.values(type.fields);
|
|
111
111
|
const relations = _lodash.default.fromPairs(fieldsArray.filter(f => f.isRelation).map(f => [f.name, {
|
|
112
112
|
entity: f.type,
|
package/integrations/node.mjs
CHANGED
|
@@ -97,7 +97,7 @@ export function getIndexDts(schema, options) {
|
|
|
97
97
|
if (options.entitiesDir) {
|
|
98
98
|
imports.push(`import type { ${type.name} } from '../../${options.entitiesDir}/${key}'`);
|
|
99
99
|
}
|
|
100
|
-
rootFields.push(`${type.handle}: EntityMethods<${type.name}, '${type.name}'
|
|
100
|
+
rootFields.push(`${type.handle}: EntityMethods<${type.name}, '${type.name}'>`);
|
|
101
101
|
const fieldsArray = Object.values(type.fields);
|
|
102
102
|
const relations = _.fromPairs(
|
|
103
103
|
fieldsArray.filter((f) => f.isRelation).map((f) => [
|