79478425

Date: 2025-03-01 23:30:52
Score: 0.5
Natty:
Report link

Would the following work for you?

type Piped = { a: true; b: true; c: true };

const result = pipeline.reduce((acc, fct) => ({ ...acc, ...fct(acc) }), {} as Piped);

Of course you can declare the Piped type as an intersection of other types or whatever, but don't make it too complicate.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: anotherOne