Zod Utils by Ian Macalinao
    Preparing search index...

    Function parseArrayWithSchema

    • Parses an array of values iteratively.

      This is useful for very large arrays, because Zod will keep the entire array in memory.

      Type Parameters

      • T extends ZodTypeAny

      Parameters

      • schema: T

        The Zod schema to parse the array with.

      • list: unknown[]

        The array of values to parse.

      Returns output<T>[]

      The parsed array.