DefinitelyTyped/types/ssh2
Tim c65e5f7549
ssh2: Fix callback types (#42823)
* Fix callback types

These were half-fixed recently (in my local version `err` cannot be `undefined`). But if you check the code the second parameter to all the callbacks should be `| undefined` too. I haven't checked all these callbacks exhaustively.

I also changed the SFTP callbacks from `any` to `Error | undefined`. Again I haven't fully analysed the entire code but it seems likely that this is the correc type.

Also changed some fields to use `?` which is a bit more idiomatic, and fixed the type of the `getConnections` callback (according to the Node typings - who knows if those are correct?).

* Missed one parameter
2020-03-14 19:07:54 -07:00
..
index.d.ts ssh2: Fix callback types (#42823) 2020-03-14 19:07:54 -07:00
ssh2-tests.ts ssh2: Fix callback types (#42823) 2020-03-14 19:07:54 -07:00
tsconfig.json
tslint.json