Type Alias PrismaModelName<PrismaClient>

PrismaModelName: Exclude<keyof PrismaClient, `$${string}` | symbol>

Extracts all model names from a generated PrismaClient.

Type Parameters

import type {PrismaClient} from '@prisma/client';
import type {PrismaModelName} from '@augment-vir/common';

function doThing(modelName: PrismaModelName<PrismaClient>) {}