neverthrow
neverthrow copied to clipboard
Enormous declaration files that hang everything since 5.1.0
I want to re-export the combine functions like this
import { Result } from 'neverthrow';
export function combine<T extends Result<unknown, unknown>[]>(resultList: T) {
return Result.combine(resultList);
}
It works fine, but the d.ts file becomes so huge that it entirely hangs the IDE and the typescript compiler, so it's impossible to use that declaration file in any other project.
I don't know why that happens, maybe it's a tsc issue or something else, but it was working fine before version 5.1.0.

This is due to the recursive nature of the generic types inside of this project since https://github.com/supermacro/neverthrow/releases/tag/v5.1.0
@lmcsu Are you still facing this issue / did you find a workaround?
@supermacro still facing, found no workaround, still using 5.0.1 ☹️