fix noimplicitAny errors

This commit is contained in:
abraaoalves
2015-12-12 11:24:19 -03:00
parent 5b5bfbec4c
commit 0bcb4658ec
2 changed files with 5 additions and 5 deletions

View File

@@ -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) {

View File

@@ -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;
}
}