mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
fix noimplicitAny errors
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/// <reference path="./cucumber.d.ts" />
|
||||
/// <reference path="cucumber.d.ts" />
|
||||
|
||||
function StepSample() {
|
||||
type Callback = cucumber.CallbackStepDefinition;
|
||||
@@ -19,7 +19,7 @@ function StepSample() {
|
||||
callback();
|
||||
});
|
||||
|
||||
step.Given(/^I am on the Cucumber.js GitHub repository$/, function(callback) {
|
||||
step.Given(/^I am on the Cucumber.js GitHub repository$/, function(callback:Callback) {
|
||||
this.visit('https://github.com/cucumber/cucumber-js', callback);
|
||||
});
|
||||
|
||||
@@ -27,7 +27,7 @@ function StepSample() {
|
||||
callback.pending();
|
||||
});
|
||||
|
||||
step.Then(/^I should see "(.*)" as the page title$/, { timeout:60*1000}, function(title:string, callback) {
|
||||
step.Then(/^I should see "(.*)" as the page title$/, { timeout:60*1000}, function(title:string, callback:Callback) {
|
||||
var pageTitle = this.browser.text('title');
|
||||
|
||||
if (title === pageTitle) {
|
||||
|
||||
4
cucumber/cucumber.d.ts
vendored
4
cucumber/cucumber.d.ts
vendored
@@ -31,7 +31,7 @@ declare module cucumber {
|
||||
}
|
||||
|
||||
interface HookScenario{
|
||||
attach(text: string, mimeType?: string, callback?: (err?) => void): void;
|
||||
attach(text: string, mimeType?: string, callback?: (err?:any) => void): void;
|
||||
isFailed() : boolean;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ declare module cucumber {
|
||||
After(code: HookCode): void;
|
||||
Around(code: AroundCode):void;
|
||||
setDefaultTimeout(time:number): void;
|
||||
registerHandler(handlerOption:string, code:(event, callback:CallbackStepDefinition) =>void): void;
|
||||
registerHandler(handlerOption:string, code:(event:any, callback:CallbackStepDefinition) =>void): void;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user