1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

chore: Switch FeatureHasTagError back to js

This commit is contained in:
Clint Checketts 2021-02-16 10:37:41 -07:00
parent d1933bcd1b
commit 46c55c865f

View File

@ -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;