arvo-core
    Preparing search index...

    Type Alias ArvoContractRecord<TType, TSchema>

    Represents a record in an Arvo contract, containing a type identifier and its validation schema.

    type ArvoContractRecord<
        TType extends string = string,
        TSchema extends z.ZodTypeAny = z.ZodTypeAny,
    > = {
        schema: TSchema;
        type: TType;
    }

    Type Parameters

    • TType extends string = string

      The type identifier for the record, must be a string type

    • TSchema extends z.ZodTypeAny = z.ZodTypeAny

      The Zod schema used for validation, must be a Zod type

    Index

    Properties

    Properties

    schema: TSchema

    The Zod schema used for validating data associated with this record

    type: TType

    The type identifier for this record