UNPKG

1.2 kBTypeScriptView Raw
1/**
2 * ## Prisma Client ʲˢ
3 *
4 * Type-safe database client for TypeScript & Node.js (ORM replacement)
5 * @example
6 * ```
7 * const prisma = new Prisma()
8 * // Fetch zero or more Users
9 * const users = await prisma.user.findMany()
10 * ```
11 *
12 *
13 * Read more in our [docs](https://github.com/prisma/prisma/blob/master/docs/prisma-client-js/api.md).
14 */
15export declare const PrismaClient: any
16/**
17 * ## Prisma Client ʲˢ
18 *
19 * Type-safe database client for TypeScript & Node.js (ORM replacement)
20 * @example
21 * ```
22 * const prisma = new Prisma()
23 * // Fetch zero or more Users
24 * const users = await prisma.user.findMany()
25 * ```
26 *
27 *
28 * Read more in our [docs](https://github.com/prisma/prisma/blob/master/docs/prisma-client-js/api.md).
29 */
30export declare type PrismaClient = any
31
32export declare const dmmf: any
33export declare type dmmf = any
34
35/**
36 * Get the type of the value, that the Promise holds.
37 */
38export declare type PromiseType<
39 T extends PromiseLike<any>
40> = T extends PromiseLike<infer U> ? U : T
41
42/**
43 * Get the return type of a function which returns a Promise.
44 */
45export declare type PromiseReturnType<
46 T extends (...args: any) => Promise<any>
47> = PromiseType<ReturnType<T>>