Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
ConstDeclaration.ts1.01 kB
import { BasicBuilder } from './BasicBuilder' import { DocComment } from './DocComment' import { TypeBuilder } from './TypeBuilder' import { ValueBuilder } from './ValueBuilder' import { Writer } from './Writer' export class ConstDeclaration implements BasicBuilder { private docComment?: DocComment private value?: ValueBuilder constructor( readonly name: string, readonly type?: TypeBuilder, ) {} setDocComment(docComment: DocComment): this { this.docComment = docComment return this } setValue(value: ValueBuilder): this { this.value = value return this } write(writer: Writer): void { if (this.docComment) { writer.write(this.docComment) } writer.write('const ').write(this.name) if (this.type) { writer.write(': ').write(this.type) } if (this.value) { writer.write(' = ').write(this.value) } } } export function constDeclaration(name: string, type?: TypeBuilder) { return new ConstDeclaration(name, type) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prisma/prisma'

If you have feedback or need assistance with the MCP directory API, please join our Discord server