API reference › @evolu/common › Type › ObjectUnexpectedPrototypeError
Defined in: packages/common/src/Type.ts:11350
An error returned when an object input falls outside its supported plain-object prototype boundary.
Object Types use the realm-neutral structural heuristic described by
isPlainObject. Values that do not satisfy it return this error instead
of having their prototype or inherited state discarded. reason.value is the
rejected object.
Extends
TypeError<"Object">
Properties
reason
readonly reason: {
kind: "UnexpectedPrototype";
value: object;
};
Defined in: packages/common/src/Type.ts:11351
| Name | Type | Defined in |
|---|---|---|
kind | "UnexpectedPrototype" | packages/common/src/Type.ts:11352 |
value | object | packages/common/src/Type.ts:11353 |
type
readonly type: "Object";
Defined in: packages/common/src/Type.ts:870