Create a Zod schema for a required trimmed string field with custom error message.

  • Parameters

    • message: string

      Error message to show when field is empty

    Returns ZodPipe<ZodTransform<string, unknown>, ZodString>

    Zod string schema