Update index.d.ts

Incorrect definition of evaluate function
This commit is contained in:
Shanayalameda
2017-03-24 15:16:52 +01:00
committed by GitHub
parent cc585590b1
commit c7ef06fc06
+1 -1
View File
@@ -39,7 +39,7 @@ export class Casper {
download(url: string, target?: string, method?: string, data?: any): Casper;
each<T>(array: T[], fn: (this: Casper, item: T, index: number) => void): Casper;
echo(message: string, style?: string): Casper;
evaluate<T>(fn: () => T, ...args: any[]): T
evaluate<T>(fn: (...args: any[]) => T, ...args: any[]): T
evaluateOrDie(fn: () => any, message?: string, status?: number): Casper;
exit(status?: number): Casper;
exists(selector: string): boolean;