command_definition.d.ts 533 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
import { promise as wdpromise } from 'selenium-webdriver';
import { Extender } from './extender';
export declare class CommandDefinition<T> {
    name: string;
    params: string[];
    method: 'GET' | 'POST' | 'DELETE' | 'PUT';
    path: string;
    private preprocessParams;
    constructor(name: string, params: string[], method: 'GET' | 'POST' | 'DELETE' | 'PUT', path: string, preprocessParams?: (...args: any[]) => any[]);
    compile<T>(extender: Extender, silentFailure: boolean): (...args: any[]) => wdpromise.Promise<T>;
}