diff --git a/dev/src/field-value.ts b/dev/src/field-value.ts index 1d793300c..c0947334d 100644 --- a/dev/src/field-value.ts +++ b/dev/src/field-value.ts @@ -102,7 +102,7 @@ export class FieldValue { * // doc.get('array') contains field 'foo' * }); */ - static arrayUnion(...elements: Array): FieldValue { + static arrayUnion(...elements: unknown[]): FieldValue { validateMinNumberOfArguments('FieldValue.arrayUnion', arguments, 1); return new ArrayUnionTransform(elements); } @@ -129,7 +129,7 @@ export class FieldValue { * // doc.get('array') no longer contains field 'foo' * }); */ - static arrayRemove(...elements: Array): FieldValue { + static arrayRemove(...elements: unknown[]): FieldValue { validateMinNumberOfArguments('FieldValue.arrayRemove', arguments, 1); return new ArrayRemoveTransform(elements); } @@ -282,7 +282,7 @@ class ServerTimestampTransform extends FieldTransform { * @private */ class ArrayUnionTransform extends FieldTransform { - constructor(private readonly elements: Array) { + constructor(private readonly elements: unknown[]) { super(); } @@ -335,7 +335,7 @@ class ArrayUnionTransform extends FieldTransform { * @private */ class ArrayRemoveTransform extends FieldTransform { - constructor(private readonly elements: Array) { + constructor(private readonly elements: unknown[]) { super(); } diff --git a/dev/src/reference.ts b/dev/src/reference.ts index a481737c2..3b25a9015 100644 --- a/dev/src/reference.ts +++ b/dev/src/reference.ts @@ -926,7 +926,7 @@ export class Query { */ static _extractFieldValues( documentSnapshot: DocumentSnapshot, fieldOrders: FieldOrder[]) { - const fieldValues: Array = []; + const fieldValues: unknown[] = []; for (const fieldOrder of fieldOrders) { if (FieldPath.documentId().isEqual(fieldOrder.field)) { diff --git a/dev/src/serializer.ts b/dev/src/serializer.ts index 41e685fab..649ffd334 100644 --- a/dev/src/serializer.ts +++ b/dev/src/serializer.ts @@ -228,7 +228,7 @@ export class Serializer { return this.createReference(resourcePath.relativeName); } case 'arrayValue': { - const array: Array = []; + const array: unknown[] = []; if (Array.isArray(proto.arrayValue!.values)) { for (const value of proto.arrayValue!.values!) { array.push(this.decodeValue(value)); @@ -312,7 +312,7 @@ export function validateUserInput( const fieldPathMessage = path ? ` (found in field ${path.toString()})` : ''; if (Array.isArray(value)) { - const arr = value as Array; + const arr = value as unknown[]; for (let i = 0; i < arr.length; ++i) { validateUserInput( arg, arr[i]!, desc, options, diff --git a/synth.metadata b/synth.metadata index 6d3a68eda..d43cb2696 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-13T12:15:47.405884Z", + "updateTime": "2019-02-24T12:13:23.461769Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.13", - "dockerImage": "googleapis/artman@sha256:5fd9aee1d82a00cebf425c8fa431f5457539562f5867ad9c54370f0ec9a7ccaa" + "version": "0.16.14", + "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "ca61898878f0926dd9dcc68ba90764f17133efe4", - "internalRef": "233680013" + "sha": "59f2494f1b00511bbb813d647cfbe95c949de0fe", + "internalRef": "235350912" } }, {