File tree Expand file tree Collapse file tree
packages/cashscript/src/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { DebugResults } from '../debugging.js' ;
2+ import type { MatcherState } from '@vitest/expect' ;
23
34interface Debuggable {
45 debug ( ) : DebugResults | Promise < DebugResults > ;
@@ -14,8 +15,7 @@ interface ExpectationResult {
1415}
1516
1617export function toLog (
17- // FIXME: improve type definition
18- this : any ,
18+ this : MatcherState ,
1919 transaction : Debuggable ,
2020 match ?: RegExp | string ,
2121) : ExpectationResult {
@@ -62,7 +62,7 @@ export function toLog(
6262}
6363
6464export function toFailRequireWith (
65- this : any ,
65+ this : MatcherState ,
6666 transaction : Debuggable ,
6767 match : RegExp | string ,
6868) : ExpectationResult {
@@ -88,7 +88,7 @@ export function toFailRequireWith(
8888}
8989
9090export function toFailRequire (
91- this : any ,
91+ this : MatcherState ,
9292 transaction : Debuggable ,
9393) : ExpectationResult {
9494 const { utils } = this ;
You can’t perform that action at this time.
0 commit comments