Skip to content

Commit

Permalink
Types updated
Browse files Browse the repository at this point in the history
  • Loading branch information
aalasolutions committed Jun 23, 2021
1 parent 8c0ae42 commit 3202536
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ declare namespace testableUtils {

function waitForFinish(): Promise<void>

function describe(suiteName: string, fn: Function): Promise<void>;

function describe(suiteName: string, fn: Function) : Promise<void>;
function it(testName: string, fn: Function) : Promise<void>;
function before(fn: Function) : void;
function after(fn: Function) : void;
function beforeEach(fn: Function) : void;
function afterEach(fn: Function) : void;
function it(testName: string, fn: Function): Promise<void>;

function before(fn: Function): void;

function after(fn: Function): void;

function beforeEach(fn: Function): void;

function afterEach(fn: Function): void;


interface Log {
Expand Down Expand Up @@ -45,7 +49,7 @@ declare namespace testableUtils {
};


interface Chunk{
interface Chunk {
id: number,
executionType: string,
agent: string,
Expand All @@ -54,7 +58,7 @@ declare namespace testableUtils {
startedAt: Date,
concurrentClients: number
}
interface Execution{
interface Execution {
id: number,
createdAt: Date,
updatedAt: Date,
Expand Down Expand Up @@ -109,17 +113,17 @@ declare namespace testableUtils {
markAsSuccess(): void;
markAsFailure(): void;

data:{resource: string, url: string},
data: { resource: string, url: string },
}
interface ResultOptions {
namespace?: string;
namespace?: string;
name: string;
key?: string;
val?: number;
units?: string;
}
interface GetOptions {
namespace?: string;
namespace?: string;
name: string;
key?: string;
}
Expand Down

0 comments on commit 3202536

Please sign in to comment.