refactor(aio): use types intead of interfaces for functions

This commit is contained in:
Georgios Kalpakas 2017-02-27 11:35:34 +02:00 committed by Chuck Jazdzewski
parent 115164033b
commit c8ead9bcd0
1 changed files with 4 additions and 3 deletions

View File

@ -17,11 +17,12 @@ const TEST_AIO_UPLOAD_MAX_SIZE = +getEnvVar('TEST_AIO_UPLOAD_MAX_SIZE');
const TEST_AIO_UPLOAD_PORT = +getEnvVar('TEST_AIO_UPLOAD_PORT'); const TEST_AIO_UPLOAD_PORT = +getEnvVar('TEST_AIO_UPLOAD_PORT');
// Interfaces - Types // Interfaces - Types
export interface CleanUpFn extends Function {}
export interface CmdResult { success: boolean; err: Error; stdout: string; stderr: string; } export interface CmdResult { success: boolean; err: Error; stdout: string; stderr: string; }
export interface FileSpecs { content?: string; size?: number; } export interface FileSpecs { content?: string; size?: number; }
export interface TestSuiteFactory { (scheme: string, port: number): void }
export interface VerifyCmdResultFn { (result: CmdResult): void; } export type CleanUpFn = () => void;
export type TestSuiteFactory = (scheme: string, port: number) => void;
export type VerifyCmdResultFn = (result: CmdResult) => void;
// Classes // Classes
class Helper { class Helper {