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

Ramda makes typescript compilation fail #134

Open
nfroidure opened this issue Dec 4, 2024 · 1 comment
Open

Ramda makes typescript compilation fail #134

nfroidure opened this issue Dec 4, 2024 · 1 comment

Comments

@nfroidure
Copy link

With TypeScript 5.7.2 and Mermaid 11.4.1 (that embed Ramda), I get the following error when compiling:

node_modules/@types/ramda/index.d.ts:1816:14 - error TS2589: Type instantiation is excessively deep and possibly infinite.

1816 ): _.F.Curry<(...args: _.T.Merge<[P[1], P[0]], P>) => _.F.Return<F>>;
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/ts-toolbelt/out/index.d.ts:4440:12 - error TS2589: Type instantiation is excessively deep and possibly infinite.

4440         0: __Assign<Merge<Os[Pos<I>], O, depth, style, noMerge>, Os, depth, style, noMerge, Next<I>>;
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/ts-toolbelt/out/index.d.ts:4440:21 - error TS2321: Excessive stack depth comparing types 'Merge<Os[Pos<I>], O, depth, style, noMerge>' and 'object'.

4440         0: __Assign<Merge<Os[Pos<I>], O, depth, style, noMerge>, Os, depth, style, noMerge, Next<I>>;
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/ts-toolbelt/out/index.d.ts:5094:12 - error TS2589: Type instantiation is excessively deep and possibly infinite.

5094         0: __MergeAll<Merge<O, Os[Pos<I>], depth, style, noMerge>, Os, depth, style, noMerge, Next<I>>;
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/ts-toolbelt/out/index.d.ts:5094:23 - error TS2321: Excessive stack depth comparing types 'Merge<O, Os[Pos<I>], depth, style, noMerge>' and 'object'.

5094         0: __MergeAll<Merge<O, Os[Pos<I>], depth, style, noMerge>, Os, depth, style, noMerge, Next<I>>;
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/ts-toolbelt/out/index.d.ts:5286:12 - error TS2589: Type instantiation is excessively deep and possibly infinite.

5286         0: __PatchAll<Patch<O, Os[Pos<I>], depth, style, noMerge>, Os, depth, style, noMerge, Next<I>>;
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/ts-toolbelt/out/index.d.ts:5286:23 - error TS2321: Excessive stack depth comparing types 'Patch<O, Os[Pos<I>], depth, style, noMerge>' and 'object'.

5286         0: __PatchAll<Patch<O, Os[Pos<I>], depth, style, noMerge>, Os, depth, style, noMerge, Next<I>>;
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 7 errors in 2 files.

Errors  Files
     1  node_modules/@types/ramda/index.d.ts:1816
     6  node_modules/ts-toolbelt/out/index.d.ts:4440
@idolum
Copy link

idolum commented Dec 27, 2024

See my remark at millsp/ts-toolbelt#346 (comment)

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