@prisma/ts-builders 6.7.0-integration-push-sunrovnkrkpv.1 → 6.7.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.
package/dist/Import.d.ts CHANGED
@@ -4,7 +4,9 @@ export type Import = NamespaceImport | BindingsImport | ModuleImport;
4
4
  export declare class NamespaceImport implements BasicBuilder {
5
5
  readonly alias: string;
6
6
  readonly from: string;
7
+ private type;
7
8
  constructor(alias: string, from: string);
9
+ typeOnly(): this;
8
10
  write(writer: Writer<undefined>): void;
9
11
  }
10
12
  export declare class BindingsImport implements BasicBuilder {
package/dist/Import.js CHANGED
@@ -31,8 +31,17 @@ class NamespaceImport {
31
31
  this.alias = alias;
32
32
  this.from = from;
33
33
  }
34
+ type = false;
35
+ typeOnly() {
36
+ this.type = true;
37
+ return this;
38
+ }
34
39
  write(writer) {
35
- writer.write("import * as ").write(this.alias).write(` from "${this.from}"`);
40
+ writer.write("import ");
41
+ if (this.type) {
42
+ writer.write("type ");
43
+ }
44
+ writer.write("* as ").write(this.alias).write(` from "${this.from}"`);
36
45
  }
37
46
  }
38
47
  class BindingsImport {
package/dist/Import.mjs CHANGED
@@ -3,8 +3,17 @@ class NamespaceImport {
3
3
  this.alias = alias;
4
4
  this.from = from;
5
5
  }
6
+ type = false;
7
+ typeOnly() {
8
+ this.type = true;
9
+ return this;
10
+ }
6
11
  write(writer) {
7
- writer.write("import * as ").write(this.alias).write(` from "${this.from}"`);
12
+ writer.write("import ");
13
+ if (this.type) {
14
+ writer.write("type ");
15
+ }
16
+ writer.write("* as ").write(this.alias).write(` from "${this.from}"`);
8
17
  }
9
18
  }
10
19
  class BindingsImport {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/ts-builders",
3
- "version": "6.7.0-integration-push-sunrovnkrkpv.1",
3
+ "version": "6.7.0",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@prisma/internals": "6.7.0-integration-push-sunrovnkrkpv.1"
27
+ "@prisma/internals": "6.7.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "vitest": "3.0.9"