UNPKG

@augment-vir/node

Version:

A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.

38 lines (37 loc) 1.53 kB
/** * An error thrown by the Prisma API that indicates that something is wrong with the given Prisma * schema. See the error message for more details. * * @category Prisma : Node : Util * @category Package : @augment-vir/node * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node) */ export declare class PrismaSchemaError extends Error { readonly name = "PrismaSchemaError"; constructor(message: string); } /** * An error thrown by the Prisma API that indicates that applying migrations in dev failed such that * a new migration is needed. You can do that by prompting user for a new migration name and passing * it to `prisma.migration.create`. * * @category Prisma : Node : Util * @category Package : @augment-vir/node * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node) */ export declare class PrismaMigrationNeededError extends Error { readonly name = "PrismaMigrationNeededError"; constructor(schemaFilePath: string); } /** * An error thrown by the Prisma API that indicates that applying migrations in dev failed such that * the entire database needs to be reset. You can do that by calling `prisma.database.resetDev`. * * @category Prisma : Node : Util * @category Package : @augment-vir/node * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node) */ export declare class PrismaResetNeededError extends Error { readonly name = "PrismaResetNeededError"; constructor(schemaFilePath: string); }