Skip to content

Commit decc324

Browse files
Prettier/Cleanup
1 parent 5fa16b2 commit decc324

File tree

7 files changed

+17
-19
lines changed

7 files changed

+17
-19
lines changed

packages/firestore/exp/src/api/snapshot.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ export interface DocumentChange<T = DocumentData> {
176176
* access will return 'undefined'. You can use the `exists()` method to
177177
* explicitly verify a document's existence.
178178
*/
179-
export class DocumentSnapshot<T = DocumentData> extends LiteDocumentSnapshot<
180-
T
181-
> {
179+
export class DocumentSnapshot<
180+
T = DocumentData
181+
> extends LiteDocumentSnapshot<T> {
182182
private readonly _firestoreImpl: FirebaseFirestore;
183183

184184
/**
@@ -291,9 +291,9 @@ export class DocumentSnapshot<T = DocumentData> extends LiteDocumentSnapshot<
291291
* `exists` property will always be true and `data()` will never return
292292
* 'undefined'.
293293
*/
294-
export class QueryDocumentSnapshot<T = DocumentData> extends DocumentSnapshot<
295-
T
296-
> {
294+
export class QueryDocumentSnapshot<
295+
T = DocumentData
296+
> extends DocumentSnapshot<T> {
297297
/**
298298
* Retrieves all fields in the document as an `Object`.
299299
*

packages/firestore/lite/src/api/snapshot.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ export class DocumentSnapshot<T = DocumentData> {
211211
* `exists` property will always be true and `data()` will never return
212212
* 'undefined'.
213213
*/
214-
export class QueryDocumentSnapshot<T = DocumentData> extends DocumentSnapshot<
215-
T
216-
> {
214+
export class QueryDocumentSnapshot<
215+
T = DocumentData
216+
> extends DocumentSnapshot<T> {
217217
/**
218218
* Retrieves all fields in the document as an `Object`.
219219
*

packages/firestore/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build:release": "run-p 'bundle rollup.config.browser.js' 'bundle rollup.config.browser.memory.js' 'bundle rollup.config.node.js' 'bundle rollup.config.node.memory.js' 'bundle rollup.config.rn.js' 'bundle rollup.config.rn.memory.js'",
1717
"build:deps": "lerna run --scope @firebase/firestore --include-dependencies build",
1818
"build:console": "node tools/console.build.js",
19-
"build:exp": "rollup -c rollup.config.exp.js ",
19+
"build:exp": "rollup -c rollup.config.exp.js",
2020
"build:lite": "rollup -c rollup.config.lite.js",
2121
"build:exp:release": "yarn build:exp && yarn build:lite",
2222
"predev": "yarn prebuild",

packages/firestore/src/protos/firestore_bundle_proto.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import {StructuredQuery, Timestamp, Document} from './firestore_proto_api';
18+
import { StructuredQuery, Timestamp, Document } from './firestore_proto_api';
1919

2020
/** Properties of a BundledQuery. */
2121
export interface BundledQuery {

packages/firestore/src/util/byte_stream.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export function toByteStreamReaderHelper(
4949
readFrom += bytesPerRead;
5050
return result;
5151
}
52-
53-
// TypesScript's lib.dom.d.ts doesn't have proper typings of
52+
53+
// TypesScript's lib.dom.d.ts doesn't have proper typings of
5454
// ReadableStreamReadResult yet.
5555
// eslint-disable-next-line @typescript-eslint/no-explicit-any
5656
return { done: true } as any;

packages/firestore/test/integration/api/query.test.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ apiDescribe('Queries', (persistence: boolean) => {
155155
.onSnapshot(storeLimitEvent.storeEvent);
156156

157157
// Setup mirroring `limitToLast` query
158-
const storeLimitToLastEvent = new EventsAccumulator<
159-
firestore.QuerySnapshot
160-
>();
158+
const storeLimitToLastEvent = new EventsAccumulator<firestore.QuerySnapshot>();
161159
let limitToLastUnlisten = collection
162160
.orderBy('sort', 'desc')
163161
.limitToLast(2)

packages/firestore/test/unit/specs/spec_builder.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1042,9 +1042,9 @@ export class SpecBuilder {
10421042
return {
10431043
key: SpecBuilder.keyToSpec(doc.key),
10441044
version: doc.version.toMicroseconds(),
1045-
value: userDataWriter.convertValue(doc.toProto()) as JsonObject<
1046-
unknown
1047-
>,
1045+
value: userDataWriter.convertValue(
1046+
doc.toProto()
1047+
) as JsonObject<unknown>,
10481048
options: {
10491049
hasLocalMutations: doc.hasLocalMutations,
10501050
hasCommittedMutations: doc.hasCommittedMutations

0 commit comments

Comments
 (0)