Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enormous declaration files that hang everything since 5.1.0 #433

Open
lmcsu opened this issue Nov 7, 2022 · 2 comments
Open

Enormous declaration files that hang everything since 5.1.0 #433

lmcsu opened this issue Nov 7, 2022 · 2 comments

Comments

@lmcsu
Copy link
Contributor

lmcsu commented Nov 7, 2022

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.

image

@supermacro
Copy link
Owner

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?

@lmcsu
Copy link
Contributor Author

lmcsu commented Dec 13, 2022

@supermacro still facing, found no workaround, still using 5.0.1 ☹️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants