API reference › @evolu/common › Type › EvoluType
const EvoluType: createType(
"EvoluType",
(value: unknown): Result<AnyType, EvoluTypeError> =>
isInstance<AnyType & Instance<"Type">>("Type")(value)
? ok(value)
: err({ type: "EvoluType", value }),
formatEvoluTypeError,
);
Defined in: packages/common/src/Type.ts:3832
A Type validating Evolu Type declarations.
This is useful when a Type itself crosses an unknown boundary or must be asserted with assertType.