mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Add PhantomJS
This commit is contained in:
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
/************************************************
|
||||
* *
|
||||
* PlantomJS v1.8.0 API *
|
||||
* *
|
||||
************************************************/
|
||||
|
||||
interface PhantomJSStatic {
|
||||
|
||||
// Properties
|
||||
args: string[]; // DEPRECATED
|
||||
cookies: any;
|
||||
cookiesEnabled: bool;
|
||||
libraryPath: string;
|
||||
scriptName: string; // DEPRECATED
|
||||
version: any;
|
||||
|
||||
// Functions
|
||||
addCookie(cookie: any): bool;
|
||||
clearCookies();
|
||||
deleteCookie(cookieName: string): bool;
|
||||
exit(returnValue: any): bool;
|
||||
injectJs(filename: string): bool;
|
||||
|
||||
// Callbacks
|
||||
onError: Function;
|
||||
}
|
||||
Reference in New Issue
Block a user