[go: nahoru, domu]

Skip to content

Commit

Permalink
chore(deps): update dependency typescript to ~3.2.0 (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and JustinBeckwith committed Dec 3, 2018
1 parent 93114d5 commit 3ab26d5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
9 changes: 7 additions & 2 deletions dev/src/reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,13 @@ export class DocumentReference {
this._validator.minNumberOfArguments('update', arguments, 1);

const writeBatch = new WriteBatch(this._firestore);
return writeBatch.update
.apply(writeBatch, [this, dataOrField].concat(preconditionOrValues))
return writeBatch
.update
// tslint:disable-next-line no-any
.apply(
writeBatch,
[this, dataOrField].concat(
preconditionOrValues) as [DocumentReference, string])
.commit()
.then(([writeResult]) => writeResult);
}
Expand Down
6 changes: 3 additions & 3 deletions dev/src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ export class Transaction {
this._validator.minNumberOfArguments('update', arguments, 2);

preconditionOrValues = Array.prototype.slice.call(arguments, 2);
this._writeBatch.update.apply(
this._writeBatch,
[documentRef, dataOrField].concat(preconditionOrValues));
this._writeBatch.update.apply(this._writeBatch, [
documentRef, dataOrField
].concat(preconditionOrValues) as [DocumentReference, string]);
return this;
}

Expand Down
3 changes: 2 additions & 1 deletion dev/src/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ export class Validator {
`Argument "${argumentName}" is not a valid ${type}.`;

try {
valid = validators[type].call(null, ...values);
// tslint:disable-next-line no-any
valid = (validators[type] as any).call(null, ...values);
} catch (err) {
message += ` ${err.message}`;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@
"proxyquire": "^2.0.1",
"source-map-support": "^0.5.6",
"ts-node": "^7.0.0",
"typescript": "~3.1.1"
"typescript": "~3.2.0"
}
}

0 comments on commit 3ab26d5

Please sign in to comment.