Adding Custom Error Message to TypeScript Uint8Array Validation

hello, how can I add a custom error message to this?
const BytesSchema = S.Uint8ArrayFromSelf.pipe(S.filter((n) => n.length <= 64));
Was this page helpful?