API Reference / @evolu/common / Type / EvoluType

Variable: EvoluType

const EvoluType: Type<"EvoluType", AnyType, AnyType, EvoluTypeError, AnyType, EvoluTypeError>;

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

Validates that an unknown value is an Evolu Type (i.e., satisfies AnyType).

Example

const result = EvoluType.from(String); // ok(String)
const error = EvoluType.from("not a Type"); // err

Was this page helpful?