The idea:
client: {
errors?: boolean | (error: Error) => boolean
warnings?: boolean | (warn: unknown) => boolean
runtimeErrors?: boolean | (error: Error) => boolean
}
But let's implement boolean firstly, so you can disable it if you need, and then we can look at serilization
Originally posted by @alexander-akait in #4771 (comment)