diff --git a/src/public/app/services/validation_error.js b/src/public/app/services/validation_error.js deleted file mode 100644 index 6d3423e6c..000000000 --- a/src/public/app/services/validation_error.js +++ /dev/null @@ -1,7 +0,0 @@ -export default class ValidationError { - constructor(resp) { - for (const key in resp) { - this[key] = resp[key]; - } - } -} \ No newline at end of file diff --git a/src/public/app/services/validation_error.ts b/src/public/app/services/validation_error.ts new file mode 100644 index 000000000..a37841a89 --- /dev/null +++ b/src/public/app/services/validation_error.ts @@ -0,0 +1,7 @@ +export default class ValidationError { + constructor(resp: Record) { + for (const key in resp) { + (this as any)[key] = resp[key]; + } + } +} \ No newline at end of file