Skip to content

Commit 021494a

Browse files
committed
fix(several): ts errors cause through ts upgrade
1 parent c2ee1fe commit 021494a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/connector/WebSocketConnector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class WebSocketConnector {
9191
} else {
9292
observer.complete();
9393
}
94-
} catch (e) {
94+
} catch (e: any) {
9595
if (!firstErr) {
9696
firstErr = e;
9797
}

lib/intersection/Validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class Validator {
126126
if ((valLib[method] as Function).apply(this, args) === false) {
127127
this.errors.push(errorMessage || method);
128128
}
129-
} catch (e) {
129+
} catch (e: any) {
130130
this.errors.push(errorMessage || e.message);
131131
}
132132
return this;

lib/metamodel/ModelBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class ModelBuilder {
5555
try {
5656
const model = this.getModel(ref);
5757
this.buildAttributes(model);
58-
} catch (e) {
58+
} catch (e: any) {
5959
throw new PersistentError(`Can't create model for entity class ${ref}`, e);
6060
}
6161
});

0 commit comments

Comments
 (0)