diff --git a/lib/index.js b/lib/index.js index 2018aa8..63387a1 100644 --- a/lib/index.js +++ b/lib/index.js @@ -135,7 +135,9 @@ AxeBuilder.prototype.analyze = function(callback) { // Check if the provided `callback` uses the old argument signature (an arity of 1). If it does, provide a helpful deprecation warning. var isOldAPI = callback && callback.length === 1; if (isOldAPI) { - deprecate('Error must be handled as the first argument of axe.analyze. See: #83'); + deprecate( + 'Error must be handled as the first argument of axe.analyze. See: #83' + ); } return new Promise((resolve, reject) => { @@ -185,3 +187,6 @@ AxeBuilder.prototype.analyze = function(callback) { }; exports = module.exports = AxeBuilder; + +// TypeScript/ES6 module support (see #74). +exports.default = AxeBuilder;