diff --git a/src/lib/error/feature-has-tag-error.ts b/src/lib/error/feature-has-tag-error.js similarity index 82% rename from src/lib/error/feature-has-tag-error.ts rename to src/lib/error/feature-has-tag-error.js index c9537f193a..720245c026 100644 --- a/src/lib/error/feature-has-tag-error.ts +++ b/src/lib/error/feature-has-tag-error.js @@ -1,5 +1,5 @@ class FeatureHasTagError extends Error { - constructor(message: string) { + constructor(message) { super(); Error.captureStackTrace(this, this.constructor); @@ -7,7 +7,7 @@ class FeatureHasTagError extends Error { this.message = message; } - toJSON(): any { + toJSON() { const obj = { isJoi: true, name: this.constructor.name, @@ -20,5 +20,4 @@ class FeatureHasTagError extends Error { return obj; } } - -export default { FeatureHasTagError }; +module.exports = FeatureHasTagError;