-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript integration #22
Comments
Currently it is exposed as below |
Then it's just "any". |
Workaround: import Ssh from "ssh2-promise";
const dummy = () => new Ssh({}).sftp();
type SFTP = ReturnType<typeof dummy>; |
Merged
Now we support SFTP type
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
would love to see typescript support like
import { SFTP } from 'ssh2-promise'
Currently there seems to be no way to access the type of SFTP (in class or interface) at all.
The text was updated successfully, but these errors were encountered: