API reference › @evolu/common › Type › StrictObjectFromUnknownError

Defined in: packages/common/src/Type.ts:17120

The fromUnknown error of an object Type without a record rest.

It has the shape of ObjectError with the structural property errors already included in Errors.

Extends

Properties

reason

readonly reason:
  | {
  kind: "NotObject";
  value: unknown;
}
  | {
  kind: "UnexpectedPrototype";
  value: object;
}
  | {
  errors: Partial<Errors> & Readonly<Record<PropertyKey,
     | ObjectExcessPropertyError
     | Exclude<Errors[keyof Errors], undefined>
    | undefined>>;
  kind: "Properties";
};

Defined in: packages/common/src/Type.ts:17125


type

readonly type: "Object";

Defined in: packages/common/src/Type.ts:1005

Inherited from

TypeError.type