API reference@evolu/commonType › TypeError

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

A plain structured error produced by a Type operation.

It is a domain value discriminated by type, not an instance of JavaScript's global TypeError.

Each distinct error meaning and shape should use a unique type. Reuse a tag only when it intentionally represents the same error contract. Accidental reuse prevents reliable discriminated-union narrowing.

Extended by

Properties

type

readonly type: Name;

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