Skip to content

Commit ab4fcd4

Browse files
renovate[bot]JustinBeckwith
authored andcommitted
chore(deps): update dependency typescript to ~3.2.0 (#467)
1 parent 9080ef2 commit ab4fcd4

4 files changed

Lines changed: 13 additions & 7 deletions

File tree

handwritten/firestore/dev/src/reference.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,13 @@ export class DocumentReference {
413413
this._validator.minNumberOfArguments('update', arguments, 1);
414414

415415
const writeBatch = new WriteBatch(this._firestore);
416-
return writeBatch.update
417-
.apply(writeBatch, [this, dataOrField].concat(preconditionOrValues))
416+
return writeBatch
417+
.update
418+
// tslint:disable-next-line no-any
419+
.apply(
420+
writeBatch,
421+
[this, dataOrField].concat(
422+
preconditionOrValues) as [DocumentReference, string])
418423
.commit()
419424
.then(([writeResult]) => writeResult);
420425
}

handwritten/firestore/dev/src/transaction.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ export class Transaction {
278278
this._validator.minNumberOfArguments('update', arguments, 2);
279279

280280
preconditionOrValues = Array.prototype.slice.call(arguments, 2);
281-
this._writeBatch.update.apply(
282-
this._writeBatch,
283-
[documentRef, dataOrField].concat(preconditionOrValues));
281+
this._writeBatch.update.apply(this._writeBatch, [
282+
documentRef, dataOrField
283+
].concat(preconditionOrValues) as [DocumentReference, string]);
284284
return this;
285285
}
286286

handwritten/firestore/dev/src/validate.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ export class Validator {
9797
`Argument "${argumentName}" is not a valid ${type}.`;
9898

9999
try {
100-
valid = validators[type].call(null, ...values);
100+
// tslint:disable-next-line no-any
101+
valid = (validators[type] as any).call(null, ...values);
101102
} catch (err) {
102103
message += ` ${err.message}`;
103104
}

handwritten/firestore/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@
8282
"proxyquire": "^2.0.1",
8383
"source-map-support": "^0.5.6",
8484
"ts-node": "^7.0.0",
85-
"typescript": "~3.1.1"
85+
"typescript": "~3.2.0"
8686
}
8787
}

0 commit comments

Comments
 (0)