File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export class UploaderFactory {
5050
5151
5252export abstract class Uploader extends EventEmitter {
53- abstract upload ( compiled : CompileOutput , listener ?: ( chunk : any ) => void ) : Promise < Connection > ;
53+ abstract upload ( compiled : CompileOutput , listener ?: ( chunk : Buffer ) => void ) : Promise < Connection > ;
5454
5555 protected removeTmpDir ( tmpdir : string ) : Promise < void > {
5656 return new Promise ( ( resolve , reject ) => {
Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ export abstract class Platform extends EventEmitter implements Testbed {
8585 this . emit ( TestbedEvents . Send , message ) ;
8686 return new Promise ( ( resolve , reject ) => {
8787 this . requests . push ( [ request , resolve ] ) ;
88- this . connection . channel . write ( message , ( err : any ) => {
89- if ( err !== null ) {
88+ this . connection . channel . write ( message , ( err : Error | null | undefined ) => {
89+ if ( err !== null && err !== undefined ) {
9090 reject ( err ) ;
9191 }
9292 } ) ;
You can’t perform that action at this time.
0 commit comments