Update test/@types/vitest.d.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Bertie690 2025-09-15 21:16:38 -04:00 committed by Sirz Benjie
parent 31bb94684e
commit 5b6eb18439
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -71,7 +71,7 @@ interface GenericMatchers<T> {
* @privateRemarks
* While this functionality _could_ be simulated by writing
* `expect(x.get(y)).toBeDefined()` or
* `expect(x).toContain[y, expect.anything()]`,
* `expect(x).toContain(y, expect.anything())`,
* this is still preferred due to being more ergonomic and provides better error messsages.
*/
toHaveKey: T extends Map<infer K, unknown> ? (expectedKey: K) => void : never;