1 | import BaseError from './base-error';
|
2 | interface OptimisticLockErrorOptions {
|
3 | message?: string;
|
4 | /** The name of the model on which the update was attempted */
|
5 | modelName?: string;
|
6 | /** The values of the attempted update */
|
7 | values?: Record<string, unknown>;
|
8 | where?: Record<string, unknown>;
|
9 | }
|
10 | /**
|
11 | * Thrown when attempting to update a stale model instance
|
12 | */
|
13 | declare class OptimisticLockError extends BaseError {
|
14 | modelName: string | undefined;
|
15 | values: Record<string, unknown> | undefined;
|
16 | where: Record<string, unknown> | undefined;
|
17 | constructor(options: OptimisticLockErrorOptions);
|
18 | }
|
19 | export default OptimisticLockError;
|