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

Type instantiation is excessively deep and possibly infinite. #6546

Open
6 tasks done
jasonkuhrt opened this issue Sep 22, 2024 · 3 comments
Open
6 tasks done

Type instantiation is excessively deep and possibly infinite. #6546

jasonkuhrt opened this issue Sep 22, 2024 · 3 comments

Comments

@jasonkuhrt
Copy link

Describe the bug

There is an issue in the expectTypeOf type utility. This may be an upstream issue. If so sorry in advance.

Notice I rolled my own type equality check that passes.

CleanShot 2024-09-22 at 09 54 29@2x

CleanShot 2024-09-22 at 09 54 55@2x

Reproduction

Available at this commit jasonkuhrt/graffle@eeb4ba4 (#1107) at /src/layers/4_ResultSet/types.test-d.ts

System Info

System:
    OS: macOS 15.0
    CPU: (8) arm64 Apple M1 Pro
    Memory: 633.48 MB / 32.00 GB
    Shell: 3.5.0 - /opt/homebrew/bin/fish
  Binaries:
    Node: 22.7.0 - ~/Library/pnpm/node
    npm: 10.8.2 - ~/Library/pnpm/npm
    pnpm: 9.10.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Brave Browser: 114.1.52.122
    Chrome: 128.0.6613.139
    Safari: 18.0
  npmPackages:
    vitest: ^2.1.1 => 2.1.1

Used Package Manager

pnpm

Validations

@jasonkuhrt
Copy link
Author

Right, maybe its an issue of https://github.com/mmkal/expect-type.

@aryaemami59
Copy link
Contributor

@jasonkuhrt Do you happen to have an actual reproduction? I can't seem to replicate it.

@jasonkuhrt
Copy link
Author

jasonkuhrt commented Sep 23, 2024

Hey @aryaemami59, once I wrap this PR jasonkuhrt/graffle#1107 (few days) I'll try to get a more minimal repro going. Thanks for your work on this!

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

No branches or pull requests

2 participants