Minimalistic example:
const foo = (): Result<void[], Error> => Result.combine([ok()]);
For context, a slightly more real-world-usage example:
declare const doSomething: () => Result<void, Error>;
const foo = (): Result<void[], Error> => Result.combine([1, 2, 3].map(() => doSomething()));
Both examples are typed correctly but violate the typescript-eslint rule because I assume the rule considers void[] not to be a useful type and instead usually a code smell.
Minimalistic example:
For context, a slightly more real-world-usage example:
Both examples are typed correctly but violate the typescript-eslint rule because I assume the rule considers
void[]not to be a useful type and instead usually a code smell.