@opscogs/octools
    Preparing search index...

    Function RecordsEnvelope

    • Return the records envelope schema over records that item parses.

      Called with no argument, records are any JSON value. The same item always returns the same schema.

      Returns RecordsEnvelopeSchema

    • Return the records envelope schema over records that item parses.

      Called with no argument, records are any JSON value. The same item always returns the same schema.

      Type Parameters

      • T extends ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>

      Parameters

      • item: T

      Returns RecordsEnvelopeSchema<output<T>, input<T>>