diff options
Diffstat (limited to 'packages/sra-report/src/globals.d.ts')
-rw-r--r-- | packages/sra-report/src/globals.d.ts | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/packages/sra-report/src/globals.d.ts b/packages/sra-report/src/globals.d.ts index 0d3beb446..817d1534b 100644 --- a/packages/sra-report/src/globals.d.ts +++ b/packages/sra-report/src/globals.d.ts @@ -1,6 +1,28 @@ +declare module 'dirty-chai'; + declare module 'newman' { + export interface NewmanRunSummary { + run: NewmanRun; + } + export interface NewmanRun { + executions: NewmanRunExecution[]; + } + export interface NewmanRunExecution { + item: NewmanRunExecutionItem; + assertions: NewmanRunExecutionAssertion[]; + } + export interface NewmanRunExecutionItem { + name: string; + } + export interface NewmanRunExecutionAssertion { + assertion: string; + error: NewmanRunExecutionAssertionError; + } + export interface NewmanRunExecutionAssertionError { + message: string; + } // tslint:disable-next-line:completed-docs - export function run(options: any, callback?: () => void): void; + export function run(options: any, callback?: (err: Error | null, summary: NewmanRunSummary) => void): void; } declare module '*.json' { |