@types/cucumber
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -10,2 +10,6 @@ // Type definitions for cucumber-js 2.0 | ||
export interface World { | ||
[key: string]: any; | ||
} | ||
export interface CallbackStepDefinition { | ||
@@ -25,3 +29,3 @@ pending(): PromiseLike<any>; | ||
export type StepDefinitionCode = (this: {[key: string]: any}, ...stepArgs: StepDefinitionParam[]) => PromiseLike<any> | any | void; | ||
export type StepDefinitionCode = (this: World, ...stepArgs: StepDefinitionParam[]) => PromiseLike<any> | any | void; | ||
@@ -50,3 +54,3 @@ export interface StepDefinitionOptions { | ||
export type HookCode = (this: { [key: string]: any }, scenario: HookScenarioResult, callback?: CallbackStepDefinition) => void; | ||
export type HookCode = (this: World, scenario: HookScenarioResult, callback?: CallbackStepDefinition) => void; | ||
@@ -75,3 +79,3 @@ // tslint:disable-next-line ban-types | ||
// tslint:disable-next-line ban-types | ||
setWorldConstructor(world: ((this: {[key: string]: any}, init: {attach: Function, parameters: {[key: string]: any}}) => void) | {}): void; | ||
setWorldConstructor(world: ((this: World, init: {attach: Function, parameters: {[key: string]: any}}) => void) | {}): void; | ||
registerHandler(handlerOption: string, code: (event: any, callback: CallbackStepDefinition) => void): void; | ||
@@ -78,0 +82,0 @@ registerListener(listener: EventListener): void; |
{ | ||
"name": "@types/cucumber", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "TypeScript definitions for cucumber-js", | ||
@@ -9,15 +9,19 @@ "license": "MIT", | ||
"name": "Abraão Alves", | ||
"url": "https://github.com/abraaoalves" | ||
"url": "https://github.com/abraaoalves", | ||
"githubUsername": "abraaoalves" | ||
}, | ||
{ | ||
"name": "Jan Molak", | ||
"url": "https://github.com/jan-molak" | ||
"url": "https://github.com/jan-molak", | ||
"githubUsername": "jan-molak" | ||
}, | ||
{ | ||
"name": "Isaiah Soung", | ||
"url": "https://github.com/isoung" | ||
"url": "https://github.com/isoung", | ||
"githubUsername": "isoung" | ||
}, | ||
{ | ||
"name": "BendingBender", | ||
"url": "https://github.com/BendingBender" | ||
"url": "https://github.com/BendingBender", | ||
"githubUsername": "BendingBender" | ||
} | ||
@@ -32,5 +36,4 @@ ], | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "2f7976fd0ab6c5b4d94778796e1284ca1d9691a28471a3b01981862865d8cade", | ||
"typesPublisherContentHash": "fb237211aa2c5ebd65990b4a60c79aacaec4764b1133fd9aeb0a617df268644a", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 02 Aug 2017 13:47:41 GMT | ||
* Last updated: Tue, 26 Sep 2017 10:15:52 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
10394
215