mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add types for newman
This commit is contained in:
parent
8091b46536
commit
7aec3d3cdf
26
types/newman/index.d.ts
vendored
Normal file
26
types/newman/index.d.ts
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
// Type definitions for newman 3.9
|
||||
// Project: https://github.com/postmanlabs/newman
|
||||
// Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
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;
|
||||
}
|
||||
export function run(options: any, callback?: (err: Error | null, summary: NewmanRunSummary) => void): void;
|
||||
11
types/newman/newman-tests.ts
Normal file
11
types/newman/newman-tests.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import {
|
||||
run,
|
||||
NewmanRun,
|
||||
NewmanRunExecution,
|
||||
NewmanRunExecutionAssertion,
|
||||
NewmanRunExecutionAssertionError,
|
||||
NewmanRunExecutionItem,
|
||||
NewmanRunSummary,
|
||||
} from 'newman';
|
||||
|
||||
run({});
|
||||
16
types/newman/tsconfig.json
Normal file
16
types/newman/tsconfig.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": ["index.d.ts", "newman-tests.ts"]
|
||||
}
|
||||
1
types/newman/tslint.json
Normal file
1
types/newman/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user