IO Wallet SDK
    Preparing search index...

    Function parseWithErrorHandling

    • Parses data with a Zod schema and throws the SDK ValidationError on failure.

      Type Parameters

      Parameters

      • schema: Schema

        Zod schema used for validation.

      • data: unknown

        Unknown value to parse.

      • OptionalcustomErrorMessage: string

        Optional error message used when validation fails.

      Returns output<Schema>

      Parsed schema output.

      If the value does not satisfy the provided schema.