Skip to content

Commit

Permalink
Consistent type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Broadbent committed Dec 6, 2023
1 parent baa0338 commit 82b330c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/module/city/controller.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { FastifyReply, FastifyRequest } from "fastify"

import { NotFoundError } from "../../server/errors"
import { CityCreate } from "../../types/schemas"
import { JsonResponse, PathParams, RequestBody } from "../../types/types"
import type { CityCreate } from "../../types/schemas"
import type { JsonResponse, PathParams, RequestBody } from "../../types/types"
import { createCity, getAllCities, getCity } from "./service"

export const cityController = {
Expand Down
4 changes: 2 additions & 2 deletions src/module/city/service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PathCityID } from "../../types/parameters"
import { City, CityCreate } from "../../types/schemas"
import type { PathCityID } from "../../types/parameters"
import type { City, CityCreate } from "../../types/schemas"
import { slugify } from "../../util/slugify"
import * as repo from "./repository"

Expand Down
6 changes: 3 additions & 3 deletions src/module/route/controller.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { FastifyReply, FastifyRequest } from "fastify"

import { NotFoundError } from "../../server/errors"
import { QueryFrom, QueryTo } from "../../types/parameters"
import { Route } from "../../types/schemas"
import { JsonResponse, QueryParams, RequestBody } from "../../types/types"
import type { QueryFrom, QueryTo } from "../../types/parameters"
import type { Route } from "../../types/schemas"
import type { JsonResponse, QueryParams, RequestBody } from "../../types/types"
import { createRoute, getRoute } from "./repository"

export const routeController = {
Expand Down
4 changes: 2 additions & 2 deletions src/module/route/repository.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { QueryFrom, QueryTo } from "../../types/parameters"
import { Route } from "../../types/schemas"
import type { QueryFrom, QueryTo } from "../../types/parameters"
import type { Route } from "../../types/schemas"

const store: Route[] = [
{ from: "barcelona", to: "thurles", miles: 1395 },
Expand Down

0 comments on commit 82b330c

Please sign in to comment.