UNPKG

prisma

Version:

Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.

47 lines (43 loc) 1.16 kB
/** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new Prisma() * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` * * * Read more in our [docs](https://github.com/prisma/prisma/blob/main/docs/prisma-client-js/api.md). */ export declare const PrismaClient: any /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new Prisma() * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` * * * Read more in our [docs](https://github.com/prisma/prisma/blob/main/docs/prisma-client-js/api.md). */ export declare type PrismaClient = any export declare const dmmf: any export declare type dmmf = any /** * Get the type of the value, that the Promise holds. */ export declare type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T /** * Get the return type of a function which returns a Promise. */ export declare type PromiseReturnType< T extends (...args: any) => Promise<any>, > = PromiseType<ReturnType<T>>