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:
parent
d1933bcd1b
commit
46c55c865f
@ -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;
|
Loading…
Reference in New Issue
Block a user