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

[expect-type] Bug with very deep type equality checking #5

Closed
papb opened this issue Mar 7, 2022 · 1 comment · Fixed by #21
Closed

[expect-type] Bug with very deep type equality checking #5

papb opened this issue Mar 7, 2022 · 1 comment · Fixed by #21

Comments

@papb
Copy link
Collaborator

papb commented Mar 7, 2022

Playground

import type { Equal } from 'expect-type';

type T1 = Equal<
    () => { a?: () => { a: [{ b: [string, { c: string }] }] } },
    () => { a?: () => { a: [{ b: [string, { c: string; d?: number }] }] } }
>;
//=> true
@mmkal mmkal transferred this issue from mmkal/ts Sep 25, 2022
@mmkal
Copy link
Owner

mmkal commented Sep 25, 2022

Very late response - this might be due to this TypeScript bug in 4.5.5+, but it's possible the library can work around the issue somehow. Will keep this open.

Edit: forgot the link: microsoft/TypeScript#50670

@mmkal mmkal changed the title [expect-type] Bug with type equality checking [expect-type] Bug with very deep type equality checking Oct 23, 2022
@mmkal mmkal closed this as completed in #21 May 10, 2023
@mmkal mmkal closed this as completed in 8f19883 May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants