We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here is a TS Playground link and related StackOverflow post
And the sample code:
export class B { b = "b"; get foo() { expectTypeOf(this).toEqualTypeOf(this); // errors expectTypeOf(this).toMatchTypeOf(this); // errors } }
Hovering over the toEqualTypeOf call provides this information:
toEqualTypeOf
(property) ExpectTypeOf<this, true>.toEqualTypeOf: <unknown>(...MISMATCH: MismatchArgs<And<[Extends<DeepBrand<this>, { type: "special"; never: false; any: false; unknown: true; }>, { type: "special"; never: false; any: false; unknown: true; } extends DeepBrand<...> ? true : false]>, true>) => true (+1 overload) --- No overload matches this call. Argument of type '[this]' is not assignable to parameter of type 'MismatchArgs< And< [ Extends< DeepBrand<this>, { type: "special"; never: false; any: false; unknown: true; } >, { type: "special"; never: false; any: false; unknown: true; } extends DeepBrand<...> ? true : false ] >, true >'. Argument of type '[]' is not assignable to parameter of type 'MismatchArgs< And< [ Extends<DeepBrand<this>, DeepBrand<this>>, Extends<DeepBrand<this>, DeepBrand<this>> ] >, true >'.(2769)
The text was updated successfully, but these errors were encountered:
@NullVoxPopuli thanks for this report. I'm not sure why this would be but I doubt it'll be possible to resolve. #16 will add some docs covering this.
Sorry, something went wrong.
document #4
50da767
fd718dd
Successfully merging a pull request may close this issue.
Here is a TS Playground link and related StackOverflow post
And the sample code:
Hovering over the
toEqualTypeOf
call provides this information:The text was updated successfully, but these errors were encountered: