Skip to content

Commit 14e53da

Browse files
committed
chore: change import type syntax
1 parent 940a5a2 commit 14e53da

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

src/routes/v1/bad-request/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FastifyPluginAsync } from 'fastify'
1+
import type { FastifyPluginAsync } from 'fastify'
22

33
const badRequest: FastifyPluginAsync = async (fastify): Promise<void> => {
44
// Note: using an arrow function will break the binding of this to the FastifyInstance.

src/routes/v1/examples/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FastifyPluginAsync } from 'fastify'
1+
import type { FastifyPluginAsync } from 'fastify'
22

33
const example: FastifyPluginAsync = async (fastify): Promise<void> => {
44
// Note: using an arrow function will break the binding of this to the FastifyInstance.

src/routes/v1/posts/handler.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import { type RouteHandler } from 'fastify'
2-
import {
3-
type Params,
4-
type Querystring,
5-
type Body,
6-
type Reply,
7-
type PostNotFound
8-
} from './schema'
2+
import type { Params, Querystring, Body, Reply, PostNotFound } from './schema'
93
import { posts } from './posts'
104

115
export const getPostsHandler: RouteHandler<{

src/routes/v1/posts/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type FastifyInstance } from 'fastify'
1+
import type { FastifyInstance } from 'fastify'
22
import {
33
postSchema,
44
postNotFoundSchema,

src/routes/v1/posts/schema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FastifySchema } from 'fastify'
1+
import type { FastifySchema } from 'fastify'
22
import { FromSchema } from 'json-schema-to-ts'
33

44
// Shared Schema

src/routes/v2/examples/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FastifyPluginAsync } from 'fastify'
1+
import type { FastifyPluginAsync } from 'fastify'
22

33
const example: FastifyPluginAsync = async (fastify): Promise<void> => {
44
// Note: using an arrow function will break the binding of this to the FastifyInstance.

0 commit comments

Comments
 (0)