Skip to content

Commit

Permalink
chore: use type imports (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesfries authored Dec 16, 2024
1 parent 696d167 commit 3be007d
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion addon/instance-initializers/firebase-settings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ApplicationInstance from '@ember/application/instance';
import type ApplicationInstance from '@ember/application/instance';

import type { FirebaseApp, FirebaseError, FirebaseOptions } from 'firebase/app';
import type { Firestore, EmulatorMockTokenOptions } from 'firebase/firestore';
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions tests/dummy/app/controllers/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import { action } from '@ember/object';
import { service } from '@ember/service';
import { tracked } from '@glimmer/tracking';
import Controller from '@ember/controller';
import EmberArray from '@ember/array';
import Store from '@ember-data/store';
import type EmberArray from '@ember/array';
import type Store from '@ember-data/store';

import { CollectionReference, Firestore } from 'firebase/firestore';
import type { CollectionReference, Firestore } from 'firebase/firestore';

import {
collection,
query,
where,
} from 'ember-cloud-firestore-adapter/firebase/firestore';
import UserModel from '../models/user';
import type UserModel from '../models/user';

export default class FeaturesController extends Controller {
@service
Expand Down
4 changes: 2 additions & 2 deletions tests/dummy/app/models/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import Model, { attr, hasMany } from '@ember-data/model';
import { Query } from 'firebase/firestore';

import { limit, query } from 'ember-cloud-firestore-adapter/firebase/firestore';
import PostModel from './post';
import UserModel from './user';
import type PostModel from './post';
import type UserModel from './user';

export default class GroupModel extends Model {
@attr('string')
Expand Down
8 changes: 4 additions & 4 deletions tests/dummy/app/models/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
import DS from 'ember-data';
import Model, { attr, belongsTo } from '@ember-data/model';

import { Firestore } from 'firebase/firestore';
import type { Firestore } from 'firebase/firestore';

import { collection } from 'ember-cloud-firestore-adapter/firebase/firestore';
import TimestampTransform from 'ember-cloud-firestore-adapter/transforms/timestamp';
import GroupModel from './group';
import UserModel from './user';
import type TimestampTransform from 'ember-cloud-firestore-adapter/transforms/timestamp';
import type GroupModel from './group';
import type UserModel from './user';

export default class PostModel extends Model {
@attr('string')
Expand Down
4 changes: 2 additions & 2 deletions tests/dummy/app/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import DS from 'ember-data';
import Model, { attr, hasMany } from '@ember-data/model';

import GroupModel from './group';
import PostModel from './post';
import type GroupModel from './group';
import type PostModel from './post';

export default class UserModel extends Model {
@attr('string')
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/dummy/app/routes/create-record.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { service } from '@ember/service';
import Route from '@ember/routing/route';
import Store from '@ember-data/store';
import type Store from '@ember-data/store';

import PostModel from '../models/post';
import type PostModel from '../models/post';

export default class CreateRecordRoute extends Route {
@service
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/routes/delete-record.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { service } from '@ember/service';
import Route from '@ember/routing/route';
import Store from '@ember-data/store';
import type Store from '@ember-data/store';

export default class DeleteRecordRoute extends Route {
@service
Expand Down
4 changes: 2 additions & 2 deletions tests/dummy/app/routes/find-all.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { service } from '@ember/service';
import ArrayProxy from '@ember/array/proxy';
import Route from '@ember/routing/route';
import Store from '@ember-data/store';
import type Store from '@ember-data/store';

import GroupModel from '../models/group';
import type GroupModel from '../models/group';

export default class FindAllRoute extends Route {
@service
Expand Down
4 changes: 2 additions & 2 deletions tests/dummy/app/routes/find-record.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { service } from '@ember/service';
import Route from '@ember/routing/route';
import Store from '@ember-data/store';
import type Store from '@ember-data/store';

import GroupModel from '../models/group';
import type GroupModel from '../models/group';

export default class FindRecordRoute extends Route {
@service
Expand Down
6 changes: 3 additions & 3 deletions tests/dummy/app/routes/query.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { service } from '@ember/service';
import ArrayProxy from '@ember/array/proxy';
import Route from '@ember/routing/route';
import Store from '@ember-data/store';
import type Store from '@ember-data/store';

import { CollectionReference } from 'firebase/firestore';
import type { CollectionReference } from 'firebase/firestore';

import {
limit,
query,
orderBy,
} from 'ember-cloud-firestore-adapter/firebase/firestore';

import GroupModel from '../models/group';
import type GroupModel from '../models/group';

export default class QueryRoute extends Route {
@service
Expand Down
4 changes: 2 additions & 2 deletions tests/dummy/app/routes/update-record.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { service } from '@ember/service';
import Route from '@ember/routing/route';
import Store from '@ember-data/store';
import type Store from '@ember-data/store';

import PostModel from '../models/post';
import type PostModel from '../models/post';

export default class UpdateRecordRoute extends Route {
@service
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/reset-fixture-data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Firestore } from 'firebase/firestore';
import type { Firestore } from 'firebase/firestore';

import {
doc,
Expand Down

0 comments on commit 3be007d

Please sign in to comment.