@@ -32,10 +32,10 @@ import {
32
32
validateDocumentPath ,
33
33
validateNonEmptyArgument
34
34
} from '../util/input_validation' ;
35
- import { AutoId } from '../util/misc' ;
36
35
// API extractor fails importing property unless we also explicitly import Property.
37
36
// eslint-disable-next-line @typescript-eslint/no-unused-vars, unused-imports/no-unused-imports-ts
38
37
import { Property , property , validateJSON } from '../util/json_validation' ;
38
+ import { AutoId } from '../util/misc' ;
39
39
40
40
import { Firestore } from './database' ;
41
41
import { FieldPath } from './field_path' ;
@@ -305,7 +305,7 @@ export class DocumentReference<
305
305
json : object ,
306
306
converter ?: FirestoreDataConverter < NewAppModelType , NewDbModelType >
307
307
) : DocumentReference < NewAppModelType , NewDbModelType > {
308
- if ( validateJSON ( json , DocumentReference . _jsonSchema ) ) {
308
+ if ( validateJSON ( json , DocumentReference . _jsonSchema ) ) {
309
309
return new DocumentReference < NewAppModelType , NewDbModelType > (
310
310
firestore ,
311
311
converter ? converter : null ,
@@ -315,7 +315,7 @@ export class DocumentReference<
315
315
throw new FirestoreError (
316
316
Code . INTERNAL ,
317
317
'Unexpected error creating Bytes from JSON.'
318
- ) ;
318
+ ) ;
319
319
}
320
320
}
321
321
0 commit comments