GitFOSS
chore: update some imports to use `import type`
+ 15
- 14
app/services/auth/types.ts
@@ -1,12 +1,12 @@
 // 1st-party
-import {
+import type {
   ServiceApiContract,
   ServiceDependencies,
 } from "@ethicdevs/react-monolith";
 // 3rd-party
-import { FastifyRequest } from "fastify";
+import type { FastifyRequest } from "fastify";
 // generated via script[generate:prisma]
-import { User } from "@prisma/client";
+import type { User } from "@prisma/client";
 // app
 import type { CryptoServiceAPI } from "../crypto/types";
 

app/services/crypto/types.ts
@@ -1,4 +1,5 @@
-import { ServiceApiContract } from "@ethicdevs/react-monolith";
+// 1st-party
+import type { ServiceApiContract } from "@ethicdevs/react-monolith";
 
 export interface CryptoServiceAPI extends ServiceApiContract {
   computeHash(strToHash: string, salt?: string): string;

app/services/gitServer/types.ts
@@ -1,10 +1,10 @@
 // 1st-party
 import { GitServer } from "@ethicdevs/fastify-git-server";
-import { ServiceApiContract } from "@ethicdevs/react-monolith";
+import type { ServiceApiContract } from "@ethicdevs/react-monolith";
 // 3rd-party
-import { FastifyRequest } from "fastify";
+import type { FastifyRequest } from "fastify";
 // app
-import { CryptoServiceAPI } from "../crypto/types";
+import type { CryptoServiceAPI } from "../crypto/types";
 
 export interface GitServerServiceAPI extends ServiceApiContract {
   authorizationResolver(

app/services/organization/types.ts
@@ -1,7 +1,7 @@
 // 1st-party
-import { ServiceApiContract } from "@ethicdevs/react-monolith";
+import type { ServiceApiContract } from "@ethicdevs/react-monolith";
 // 3rd-party
-import { FastifyRequest } from "fastify";
+import type { FastifyRequest } from "fastify";
 // generated via script[generate:prisma]
 import { Organization, Prisma, Repository } from "@prisma/client";
 

app/services/pullRequest/types.ts
@@ -1,7 +1,7 @@
 // 1st-party
-import { ServiceApiContract } from "@ethicdevs/react-monolith";
+import type { ServiceApiContract } from "@ethicdevs/react-monolith";
 // 3rd-party
-import { FastifyRequest } from "fastify";
+import type { FastifyRequest } from "fastify";
 // generated via script[prisma:generate]
 import { Prisma, PullRequest, Repository, User } from "@prisma/client";
 

app/services/repository/types.ts
@@ -1,5 +1,5 @@
 // std
-import { PathLike } from "node:fs";
+import type { PathLike } from "node:fs";
 // 1st-party
 import type { ServiceApiContract } from "@ethicdevs/react-monolith";
 // 3rd-party

app/services/user/types.ts
@@ -1,7 +1,7 @@
 // 1st-party
-import { ServiceApiContract } from "@ethicdevs/react-monolith";
+import type { ServiceApiContract } from "@ethicdevs/react-monolith";
 // 3rd-party
-import { FastifyRequest } from "fastify";
+import type { FastifyRequest } from "fastify";
 // generated via script[generate:prisma]
 import {
   Prisma,