API reference › @evolu/common › Type › DiscriminatedUnionPropertyAccessError

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

An error returned when the discriminator for discriminatedUnion is not an own enumerable data property.

Extends

Properties

reason

readonly reason: {
  key: Key;
  kind: "PropertyAccess";
  reason: "Accessor" | "NonEnumerable" | "Inherited";
};

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

NameTypeDefined in
keyKeypackages/common/src/Type.ts:19444
kind"PropertyAccess"packages/common/src/Type.ts:19443
reason"Accessor" | "NonEnumerable" | "Inherited"packages/common/src/Type.ts:19445

type

readonly type: "DiscriminatedUnion";

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

Inherited from

TypeError.type