MCPcopy
hub / github.com/prisma/prisma / NamespaceExport

Class NamespaceExport

packages/ts-builders/src/ExportFrom.ts:6–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4export type ExportFrom = NamespaceExport | BindingsExport | ExportAllFrom
5
6export class NamespaceExport implements BasicBuilder {
7 constructor(
8 private from: string,
9 private namespace: string,
10 ) {}
11
12 write(writer: Writer<undefined>): void {
13 writer.write(`export * as ${this.namespace} from '${this.from}'`)
14 }
15}
16
17export class BindingsExport implements BasicBuilder {
18 private namedExports: NamedExport[] = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected