11export  interface  Subscribable  { 
22subscribe ( observer : { 
3- error ( err : any ) : void , 
4- complete ( ) : void , 
5- } ) : void 
3+ error ( err : any ) : void ; 
4+ complete ( ) : void ; 
5+ } ) : void ; 
66} 
77
8- export  type  Constructor  =  ( new  ( ...args : Array < any > )  =>  any ) ; 
8+ export  type  Constructor  =  ( new  ( ...args : any [ ] )  =>  any ) ; 
99
1010/** Specify one or more expectations the thrown error must satisfy. */ 
1111export  type  ThrowsExpectation  =  { 
@@ -29,8 +29,8 @@ export type CommitDiscardOptions = {
2929/** 
3030 * Whether the logs should be included in those of the parent test. 
3131 */ 
32- retainLogs ?: boolean 
33- } 
32+ retainLogs ?: boolean ; 
33+ } ; 
3434
3535/** Options that can be passed to the `t.snapshot()` assertion. */ 
3636export  type  SnapshotOptions  =  { 
@@ -316,10 +316,10 @@ export interface ExecutionContext<Context = unknown> extends Assertions {
316316
317317export  interface  LogFn  { 
318318/** Log one or more values. */ 
319- ( ...values : Array < any > ) : void ; 
319+ ( ...values : any [ ] ) : void ; 
320320
321321/** Skip logging. */ 
322- skip ( ...values : Array < any > ) : void ; 
322+ skip ( ...values : any [ ] ) : void ; 
323323} 
324324
325325export  interface  PlanFn  { 
@@ -354,7 +354,7 @@ export interface TryFn<Context = unknown> {
354354 * the test will fail. A macro may be provided. The title may help distinguish attempts from 
355355 * one another. 
356356 */ 
357- < Args  extends  any [ ] > ( title : string ,  fn : [ EitherMacro < Args ,  Context > ,  ...EitherMacro < Args ,  Context > [ ] ] ,  ...args : Args ) : Promise < TryResult [ ] > ; 
357+ < Args  extends  any [ ] > ( title : string ,  fn : [ EitherMacro < Args ,  Context > ,  ...Array < EitherMacro < Args ,  Context > > ] ,  ...args : Args ) : Promise < TryResult [ ] > ; 
358358
359359/** 
360360* Requires opt-in. Attempt to run some assertions. The result must be explicitly committed or discarded or else 
@@ -366,7 +366,7 @@ export interface TryFn<Context = unknown> {
366366* Requires opt-in. Attempt to run some assertions. The result must be explicitly committed or discarded or else 
367367* the test will fail. A macro may be provided. 
368368*/ 
369- < Args  extends  any [ ] > ( fn : [ EitherMacro < Args ,  Context > ,  ...EitherMacro < Args ,  Context > [ ] ] ,  ...args : Args ) : Promise < TryResult [ ] > ; 
369+ < Args  extends  any [ ] > ( fn : [ EitherMacro < Args ,  Context > ,  ...Array < EitherMacro < Args ,  Context > > ] ,  ...args : Args ) : Promise < TryResult [ ] > ; 
370370} 
371371
372372export  interface  AssertionError  extends  Error  { } 
@@ -427,32 +427,32 @@ export type Macro<Args extends any[], Context = unknown> = UntitledMacro<Args, C
427427 * the title provided when the test or hook was declared. Also receives the remaining test arguments. 
428428 */ 
429429title ?: ( providedTitle : string  |  undefined ,  ...args : Args )  =>  string ; 
430- } 
430+ } ; 
431431
432432export  type  EitherMacro < Args  extends  any [ ] ,  Context >  =  Macro < Args ,  Context >  |  UntitledMacro < Args ,  Context > ; 
433433
434434/** Alias for a single macro, or an array of macros. */ 
435- export  type  OneOrMoreMacros < Args  extends  any [ ] ,  Context >  =  EitherMacro < Args ,  Context >  |  [ EitherMacro < Args ,  Context > ,  ...EitherMacro < Args ,  Context > [ ] ] ; 
435+ export  type  OneOrMoreMacros < Args  extends  any [ ] ,  Context >  =  EitherMacro < Args ,  Context >  |  [ EitherMacro < Args ,  Context > ,  ...Array < EitherMacro < Args ,  Context > > ] ; 
436436
437437/** A reusable test or hook implementation, for tests & hooks declared with the `.cb` modifier. */ 
438- export  type  UntitledCbMacro < Args  extends  any [ ] ,  Context  =  unknown >  =  ( t : CbExecutionContext < Context > ,  ...args : Args )  =>  ImplementationResult 
438+ export  type  UntitledCbMacro < Args  extends  any [ ] ,  Context  =  unknown >  =  ( t : CbExecutionContext < Context > ,  ...args : Args )  =>  ImplementationResult ; 
439439
440440/** A reusable test or hook implementation, for tests & hooks declared with the `.cb` modifier. */ 
441441export  type  CbMacro < Args  extends  any [ ] ,  Context  =  unknown >  =  UntitledCbMacro < Args ,  Context >  &  { 
442442title ?: ( providedTitle : string  |  undefined ,  ...args : Args )  =>  string ; 
443- } 
443+ } ; 
444444
445445export  type  EitherCbMacro < Args  extends  any [ ] ,  Context >  =  CbMacro < Args ,  Context >  |  UntitledCbMacro < Args ,  Context > ; 
446446
447447/** Alias for a single macro, or an array of macros, used for tests & hooks declared with the `.cb` modifier. */ 
448- export  type  OneOrMoreCbMacros < Args  extends  any [ ] ,  Context >  =  EitherCbMacro < Args ,  Context >  |  [ EitherCbMacro < Args ,  Context > ,  ...EitherCbMacro < Args ,  Context > [ ] ] ; 
448+ export  type  OneOrMoreCbMacros < Args  extends  any [ ] ,  Context >  =  EitherCbMacro < Args ,  Context >  |  [ EitherCbMacro < Args ,  Context > ,  ...Array < EitherCbMacro < Args ,  Context > > ] ; 
449449
450450export  interface  TestInterface < Context  =  unknown >  { 
451451/** Declare a concurrent test. */ 
452452( title : string ,  implementation : Implementation < Context > ) : void ; 
453453
454454/** Declare a concurrent test that uses one or more macros. Additional arguments are passed to the macro. */ 
455- < T  extends  any [ ] > ( title : string ,  macros : OneOrMoreMacros < T ,  Context > ,  ...rest : T ) : void 
455+ < T  extends  any [ ] > ( title : string ,  macros : OneOrMoreMacros < T ,  Context > ,  ...rest : T ) : void ; 
456456
457457/** Declare a concurrent test that uses one or more macros. The macro is responsible for generating a unique test title. */ 
458458< T  extends  any [ ] > ( macros : OneOrMoreMacros < T ,  Context > ,  ...rest : T ) : void ; 
0 commit comments