Skip to content

Commit c14fbcc

Browse files
Lint
1 parent 73826ad commit c14fbcc

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

packages/firestore/src/remote/serializer.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ import {
7070
Target as ProtoTarget,
7171
Timestamp as ProtoTimestamp,
7272
Value as ProtoValue,
73-
Write as ProtoWrite
73+
Write as ProtoWrite,
74+
TargetChangeTargetChangeType as ProtoTargetChangeTargetChangeType,
75+
WriteResult as ProtoWriteResult
7476
} from '../protos/firestore_proto_api';
7577
import { debugAssert, fail, hardAssert } from '../util/assert';
7678
import { Code, FirestoreError } from '../util/error';
@@ -97,10 +99,6 @@ import {
9799
WatchTargetChangeState
98100
} from './watch_change';
99101
import { isNanValue, isNullValue, normalizeTimestamp } from '../model/values';
100-
import {
101-
TargetChangeTargetChangeType,
102-
WriteResult
103-
} from '../protos/firestore_proto_api';
104102

105103
const DIRECTIONS = (() => {
106104
const dirs: { [dir: string]: ProtoOrderDirection } = {};
@@ -572,7 +570,7 @@ export function fromWatchChange(
572570
}
573571

574572
function fromWatchTargetChangeState(
575-
state: TargetChangeTargetChangeType
573+
state: ProtoTargetChangeTargetChangeType
576574
): WatchTargetChangeState {
577575
if (state === 'NO_CHANGE') {
578576
return WatchTargetChangeState.NoChange;
@@ -716,7 +714,7 @@ function fromPrecondition(precondition: ProtoPrecondition): Precondition {
716714
}
717715

718716
function fromWriteResult(
719-
proto: WriteResult,
717+
proto: ProtoWriteResult,
720718
commitTime: ProtoTimestamp
721719
): MutationResult {
722720
// NOTE: Deletes don't have an updateTime.
@@ -741,7 +739,7 @@ function fromWriteResult(
741739
}
742740

743741
export function fromWriteResults(
744-
protos: WriteResult[] | undefined,
742+
protos: ProtoWriteResult[] | undefined,
745743
commitTime?: ProtoTimestamp
746744
): MutationResult[] {
747745
if (protos && protos.length > 0) {

0 commit comments

Comments
 (0)