Skip to content

Commit

Permalink
feat(typings): swapped declare class for export interface
Browse files Browse the repository at this point in the history
  • Loading branch information
OzairP authored and trs committed Oct 26, 2017
1 parent 7589322 commit e272802
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ftp-srv.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as tls from 'tls'
import { Stats } from 'fs'

declare class FileSystem {
export interface FileSystem {
constructor(connection: any, {root, cwd}?: {
root: any;
cwd: any;
Expand Down Expand Up @@ -35,7 +35,7 @@ declare class FileSystem {
getUniqueName(): string;
}

declare class FtpConnection {
export interface FtpConnection {
server: FtpServer;
id: string;
log: any;
Expand All @@ -52,7 +52,7 @@ declare class FtpConnection {

}

interface FtpServerOptions {
export interface FtpServerOptions {
pasv_range?: number | string,
greeting?: string,
tls?: tls.SecureContext | false,
Expand All @@ -63,7 +63,7 @@ interface FtpServerOptions {
log: any
}

declare class FtpServer {
export interface FtpServer {
constructor(url: string, options?: FtpServerOptions);

readonly isTLS: boolean;
Expand Down

0 comments on commit e272802

Please sign in to comment.