API reference › @evolu/common › Type › DiscriminatedUnionPropertyAccessError

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

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:19725

NameTypeDefined in
keyKeypackages/common/src/Type.ts:19727
kind"PropertyAccess"packages/common/src/Type.ts:19726
reason"Accessor" | "NonEnumerable" | "Inherited"packages/common/src/Type.ts:19728

type

readonly type: "DiscriminatedUnion";

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

Inherited from

TypeError.type