axe-webdriverjs: try method overloading

This commit is contained in:
Tyler Krupicka
2019-03-10 20:00:07 -07:00
parent e632ad8555
commit bb08f89827
+7
View File
@@ -70,6 +70,13 @@ export interface AxeBuilder {
*/
configure(config: Spec): this;
/**
* Perform analysis and retrieve results.
* Old API without error parameter for callback
* @param callback Function to execute when analysis completes.
*/
analyze(callback?: (results: AxeAnalysis) => void): Promise<AxeAnalysis>;
/**
* Perform analysis and retrieve results.
* @param callback Function to execute when analysis completes.