refactor(aio): use types intead of interfaces for functions
This commit is contained in:
parent
115164033b
commit
c8ead9bcd0
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue