mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
client-ts: Port services/validation_error
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
export default class ValidationError {
|
||||
constructor(resp) {
|
||||
for (const key in resp) {
|
||||
this[key] = resp[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
7
src/public/app/services/validation_error.ts
Normal file
7
src/public/app/services/validation_error.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export default class ValidationError {
|
||||
constructor(resp: Record<string, string | number>) {
|
||||
for (const key in resp) {
|
||||
(this as any)[key] = resp[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user