prisma-laravel-migrate 3.1.8 → 3.1.9
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/dist/cli/cli.js +1 -1
- package/dist/cli/ts.index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli/cli.js
CHANGED
|
@@ -2435,7 +2435,7 @@ var PrismaToTypesGenerator = class {
|
|
|
2435
2435
|
pivotProps.push(`${propName}: ${colTs}`);
|
|
2436
2436
|
}
|
|
2437
2437
|
const pivotShape = pivotProps.length ? `{ ${pivotProps.join("; ")} }` : "{}";
|
|
2438
|
-
const elementType =
|
|
2438
|
+
const elementType = pivotShape ? `(${target} & ${pivotShape})` : target;
|
|
2439
2439
|
tsType = wrapList(elementType);
|
|
2440
2440
|
} else {
|
|
2441
2441
|
tsType = wrapList(target);
|
package/dist/cli/ts.index.js
CHANGED
|
@@ -766,7 +766,7 @@ var PrismaToTypesGenerator = class {
|
|
|
766
766
|
pivotProps.push(`${propName}: ${colTs}`);
|
|
767
767
|
}
|
|
768
768
|
const pivotShape = pivotProps.length ? `{ ${pivotProps.join("; ")} }` : "{}";
|
|
769
|
-
const elementType =
|
|
769
|
+
const elementType = pivotShape ? `(${target} & ${pivotShape})` : target;
|
|
770
770
|
tsType = wrapList(elementType);
|
|
771
771
|
} else {
|
|
772
772
|
tsType = wrapList(target);
|
package/dist/index.js
CHANGED
|
@@ -2430,7 +2430,7 @@ var PrismaToTypesGenerator = class {
|
|
|
2430
2430
|
pivotProps.push(`${propName}: ${colTs}`);
|
|
2431
2431
|
}
|
|
2432
2432
|
const pivotShape = pivotProps.length ? `{ ${pivotProps.join("; ")} }` : "{}";
|
|
2433
|
-
const elementType =
|
|
2433
|
+
const elementType = pivotShape ? `(${target} & ${pivotShape})` : target;
|
|
2434
2434
|
tsType = wrapList(elementType);
|
|
2435
2435
|
} else {
|
|
2436
2436
|
tsType = wrapList(target);
|