Type Alias ArvoContractRecord<TType, TSchema>

ArvoContractRecord<TType, TSchema>: {
    schema: TSchema;
    type: TType;
}

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

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

Type declaration

  • schema: TSchema

    The Zod schema used for validating data associated with this record

  • type: TType

    The type identifier for this record