Skip to content

Commit bab592c

Browse files
authored
🤖 Merge PR DefinitelyTyped#71332 [ftpd] Added allowedCommands to the FtpServerOptions interface by @BreadEaterYT
1 parent 4866601 commit bab592c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

‎types/ftpd/ftpd-tests.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ var options: ftpd.FtpServerOptions = {
1010
return "/";
1111
},
1212
logLevel: ftpd.LogLevel.ERROR,
13+
allowedCommands: []
1314
};
1415

1516
var host: string = "10.0.0.42";

‎types/ftpd/index.d.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ export interface FtpServerOptions {
9292
* Integer from 0-4 representing the Log Level to show.
9393
*/
9494
logLevel?: LogLevel | undefined;
95+
/**
96+
* String array, specifies commands that the FTP client can execute (e.g: XMKD, AUTH, etc...)
97+
*/
98+
allowedCommands?: string[] | undefined;
9599
}
96100

97101
/**

0 commit comments

Comments
 (0)