Skip to content

Commit

Permalink
chore: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Dec 23, 2022
1 parent 17e3446 commit ef6eb73
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/app-check/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FirebaseApp } from 'firebase/app'
import type { FirebaseApp } from 'firebase/app'
import {
initializeAppCheck,
onTokenChanged,
Expand Down
7 changes: 1 addition & 6 deletions src/app/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { FirebaseApp, getApp } from 'firebase/app'
import {
getCurrentInstance,
getCurrentScope,
inject,
InjectionKey,
} from 'vue-demi'
import { getCurrentInstance, inject, InjectionKey } from 'vue-demi'

// @internal
export const _FirebaseAppInjectionKey: InjectionKey<FirebaseApp> =
Expand Down
4 changes: 2 additions & 2 deletions src/auth/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FirebaseApp } from 'firebase/app'
import type { FirebaseApp } from 'firebase/app'
import { getAuth, User } from 'firebase/auth'
import { App, ref, shallowRef } from 'vue-demi'
import { App, ref } from 'vue-demi'
import { useFirebaseApp } from '../app'
import { getGlobalScope } from '../globals'
import { isClient, _Nullable } from '../shared'
Expand Down
2 changes: 0 additions & 2 deletions src/database/bind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import {
} from './utils'
import {
noop,
OperationsType,
ResetOption,
TODO,
_DataSourceOptions,
_MaybeRef,
_ResolveRejectFn,
Expand Down
2 changes: 1 addition & 1 deletion src/globals.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FirebaseApp } from 'firebase/app'
import type { FirebaseApp } from 'firebase/app'
import { App, EffectScope, effectScope } from 'vue-demi'

// @internal
Expand Down
5 changes: 1 addition & 4 deletions src/shared.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { DatabaseReference, Query as DatabaseQuery } from 'firebase/database'
import {
import type {
CollectionReference,
DocumentData,
DocumentReference,
DocumentSnapshot,
Query as FirestoreQuery,
QuerySnapshot,
Timestamp,
} from 'firebase/firestore'
import { StorageReference } from 'firebase/storage'
import { getCurrentInstance, inject, ssrContextKey } from 'vue-demi'
Expand Down
4 changes: 1 addition & 3 deletions src/ssr/initialState.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { FirebaseApp } from 'firebase/app'
import type { FirebaseApp } from 'firebase/app'
import { DatabaseReference, Query as DatabaseQuery } from 'firebase/database'
import {
CollectionReference,
DocumentReference,
Query as FirestoreQuery,
} from 'firebase/firestore'
import { StorageReference } from 'firebase/storage'
import { InjectionKey } from 'vue-demi'
import { useFirebaseApp } from '../app'
import {
isDatabaseReference,
isFirestoreDataReference,
Expand Down
2 changes: 1 addition & 1 deletion src/ssr/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from 'firebase/firestore'
import { StorageReference } from 'firebase/storage'
import { useFirebaseApp, _FirebaseAppInjectionKey } from '../app'
import { getDataSourcePath, noop } from '../shared'
import { noop } from '../shared'
import { deferInitialValueSetup } from './initialState'

export const appPendingPromises = new WeakMap<
Expand Down

0 comments on commit ef6eb73

Please sign in to comment.