Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
assertNever.ts900 B
/** * Utility function to ensure exhaustive checks for union types. * * @example * ```ts * declare const fruit: 'Apple' | 'Orange' * * switch (fruit) { * case 'Apple: * // do apple things * break; * case 'Orange: * // do orange things * break; * default: * // in case `fruit` type will expand in the future, * // we'll get a compile-time error here, listing all unhandled * // cases * assertNever(fruit, 'Unknown fruit') * } * ``` * @param arg variable of the any union type. By the time `assertNever` is called * all possible cases of this union must already be handled * @param errorMessage error message to throw in runtime. Normally, should never happen * unless compile-time check is skipped */ export function assertNever(arg: never, errorMessage: string): never { throw new Error(errorMessage) }

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