mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
26 lines
618 B
TypeScript
26 lines
618 B
TypeScript
import Ftp from 'jsftp';
|
|
|
|
const connectOpts = {
|
|
host: 'localhost',
|
|
port: 22222,
|
|
};
|
|
|
|
const ftp = new Ftp(connectOpts); // $ExpectType Ftp
|
|
|
|
ftp.ls('foo', (err) => { }); // $ExpectType void
|
|
|
|
ftp.list('foo', (err) => { }); // $ExpectType void
|
|
|
|
ftp.get('foo', (err) => { }); // $ExpectType void
|
|
ftp.get('foo', 'bar', (err) => { }); // $ExpectType void
|
|
|
|
ftp.put('foo', 'bar', (err) => { }); // $ExpectType void
|
|
|
|
ftp.rename('foo', 'bar', (err) => { }); // $ExpectType void
|
|
|
|
ftp.raw('foo', 'param', (err) => { }); // $ExpectType void
|
|
|
|
ftp.keepAlive(); // $ExpectType void
|
|
|
|
ftp.destroy(); // $ExpectType void
|