From ef6eb73e8ed18e2ff895c514461909329530e100 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 23 Dec 2022 12:02:17 +0100 Subject: [PATCH] chore: remove unused imports --- src/app-check/index.ts | 2 +- src/app/index.ts | 7 +------ src/auth/index.ts | 4 ++-- src/database/bind.ts | 2 -- src/globals.ts | 2 +- src/shared.ts | 5 +---- src/ssr/initialState.ts | 4 +--- src/ssr/plugin.ts | 2 +- 8 files changed, 8 insertions(+), 20 deletions(-) diff --git a/src/app-check/index.ts b/src/app-check/index.ts index f5a1e6da..81b506da 100644 --- a/src/app-check/index.ts +++ b/src/app-check/index.ts @@ -1,4 +1,4 @@ -import { FirebaseApp } from 'firebase/app' +import type { FirebaseApp } from 'firebase/app' import { initializeAppCheck, onTokenChanged, diff --git a/src/app/index.ts b/src/app/index.ts index 2a436bc0..d69f3db7 100644 --- a/src/app/index.ts +++ b/src/app/index.ts @@ -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 = diff --git a/src/auth/index.ts b/src/auth/index.ts index ed367884..fb33e667 100644 --- a/src/auth/index.ts +++ b/src/auth/index.ts @@ -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' diff --git a/src/database/bind.ts b/src/database/bind.ts index 3e937111..06f20d4b 100644 --- a/src/database/bind.ts +++ b/src/database/bind.ts @@ -6,9 +6,7 @@ import { } from './utils' import { noop, - OperationsType, ResetOption, - TODO, _DataSourceOptions, _MaybeRef, _ResolveRejectFn, diff --git a/src/globals.ts b/src/globals.ts index 50f69bd6..fec9c616 100644 --- a/src/globals.ts +++ b/src/globals.ts @@ -1,4 +1,4 @@ -import { FirebaseApp } from 'firebase/app' +import type { FirebaseApp } from 'firebase/app' import { App, EffectScope, effectScope } from 'vue-demi' // @internal diff --git a/src/shared.ts b/src/shared.ts index 80615e7d..c9e17591 100644 --- a/src/shared.ts +++ b/src/shared.ts @@ -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' diff --git a/src/ssr/initialState.ts b/src/ssr/initialState.ts index a5845b53..06b7ecc4 100644 --- a/src/ssr/initialState.ts +++ b/src/ssr/initialState.ts @@ -1,4 +1,4 @@ -import { FirebaseApp } from 'firebase/app' +import type { FirebaseApp } from 'firebase/app' import { DatabaseReference, Query as DatabaseQuery } from 'firebase/database' import { CollectionReference, @@ -6,8 +6,6 @@ import { Query as FirestoreQuery, } from 'firebase/firestore' import { StorageReference } from 'firebase/storage' -import { InjectionKey } from 'vue-demi' -import { useFirebaseApp } from '../app' import { isDatabaseReference, isFirestoreDataReference, diff --git a/src/ssr/plugin.ts b/src/ssr/plugin.ts index 9849265a..3829ce0d 100644 --- a/src/ssr/plugin.ts +++ b/src/ssr/plugin.ts @@ -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<