filter-void-predicate-dynamic.ts:4:27 - error SC1090: '.filter()' with a void-returning predicate (the callback return value is erased before its truthiness can be tested) is not supported yet

  3 | const pred: (n: number) => void = (n) => n;
  4 | console.log([0, 1].filter(pred).join(","));
    |                           ^~~~
  5 | // The callback's erased return makes this unsupported.