Skip to content

Commit e0ae6fe

Browse files
renovate[bot]JustinBeckwith
authored andcommitted
chore(deps): update dependency typescript to ~3.1.0 (#259)
* chore(deps): update dependency typescript to ~3.1.0 * fixy
1 parent 77d1449 commit e0ae6fe

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

core/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"sinon": "^6.0.0",
109109
"source-map-support": "^0.5.6",
110110
"tmp": "0.0.33",
111-
"typescript": "~3.0.0",
111+
"typescript": "~3.1.0",
112112
"uuid": "^3.2.1"
113113
}
114114
}

core/common/src/service-object.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class ServiceObject extends EventEmitter {
211211
const args = [this.id] as Array<{}>;
212212

213213
if (typeof optionsOrCallback === 'function') {
214-
callback = optionsOrCallback;
214+
callback = optionsOrCallback as InstanceResponseCallback;
215215
}
216216

217217
if (typeof optionsOrCallback === 'object') {

core/common/test/service-object.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ describe('ServiceObject', () => {
479479
SO.InstanceResponseCallback,
480480
callback?: SO.InstanceResponseCallback) => {
481481
callback = typeof optionsOrCallback === 'function' ?
482-
optionsOrCallback :
482+
optionsOrCallback as SO.InstanceResponseCallback :
483483
callback;
484484
sandbox.stub(serviceObject, 'get')
485485
.callsFake(

0 commit comments

Comments
 (0)