@vitest/spy
Advanced tools
Comparing version 0.27.0 to 0.27.1
@@ -100,3 +100,5 @@ import { SpyImpl } from 'tinyspy'; | ||
declare function spyOn<T, G extends Properties<Required<T>>>(obj: T, methodName: G, accessType: 'set'): SpyInstance<[T[G]], void>; | ||
declare function spyOn<T, M extends (Methods<Required<T>> | Classes<Required<T>>)>(obj: T, methodName: M): Required<T>[M] extends (...args: infer A) => infer R | (new (...args: infer A) => infer R) ? SpyInstance<A, R> : never; | ||
declare function spyOn<T, M extends (Classes<Required<T>> | Methods<Required<T>>)>(obj: T, methodName: M): Required<T>[M] extends ({ | ||
new (...args: infer A): infer R; | ||
}) | ((...args: infer A) => infer R) ? SpyInstance<A, R> : never; | ||
declare function fn<TArgs extends any[] = any[], R = any>(): Mock<TArgs, R>; | ||
@@ -103,0 +105,0 @@ declare function fn<TArgs extends any[] = any[], R = any>(implementation: (...args: TArgs) => R): Mock<TArgs, R>; |
{ | ||
"name": "@vitest/spy", | ||
"type": "module", | ||
"version": "0.27.0", | ||
"version": "0.27.1", | ||
"description": "Lightweight Jest compatible spy implementation", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10215
205