Updated comment

This commit is contained in:
Bertie690 2025-09-15 20:34:01 -04:00 committed by Sirz Benjie
parent e60f2c66c5
commit f1a0f96b37
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -43,6 +43,9 @@ declare module "vitest" {
* @typeParam M - The type of the matchers object to restrict
* @typeParam T - The type parameter of the assertion
* @typeParam R - The type to restrict T based off of
* @privateRemarks
* We cannot remove incompatible methods outright as Typescript requires that
* interfaces extend solely off of types with statically known members.
*/
type RestrictMatcher<M extends object, T, R> = {
[k in keyof M]: T extends R ? M[k] : never;