Skip to content

Commit

Permalink
chore: change import type syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
wd-David committed May 24, 2022
1 parent 940a5a2 commit 14e53da
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/routes/v1/bad-request/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FastifyPluginAsync } from 'fastify'
import type { FastifyPluginAsync } from 'fastify'

const badRequest: FastifyPluginAsync = async (fastify): Promise<void> => {
// Note: using an arrow function will break the binding of this to the FastifyInstance.
Expand Down
2 changes: 1 addition & 1 deletion src/routes/v1/examples/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FastifyPluginAsync } from 'fastify'
import type { FastifyPluginAsync } from 'fastify'

const example: FastifyPluginAsync = async (fastify): Promise<void> => {
// Note: using an arrow function will break the binding of this to the FastifyInstance.
Expand Down
8 changes: 1 addition & 7 deletions src/routes/v1/posts/handler.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import { type RouteHandler } from 'fastify'
import {
type Params,
type Querystring,
type Body,
type Reply,
type PostNotFound
} from './schema'
import type { Params, Querystring, Body, Reply, PostNotFound } from './schema'
import { posts } from './posts'

export const getPostsHandler: RouteHandler<{
Expand Down
2 changes: 1 addition & 1 deletion src/routes/v1/posts/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FastifyInstance } from 'fastify'
import type { FastifyInstance } from 'fastify'
import {
postSchema,
postNotFoundSchema,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/v1/posts/schema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FastifySchema } from 'fastify'
import type { FastifySchema } from 'fastify'
import { FromSchema } from 'json-schema-to-ts'

// Shared Schema
Expand Down
2 changes: 1 addition & 1 deletion src/routes/v2/examples/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FastifyPluginAsync } from 'fastify'
import type { FastifyPluginAsync } from 'fastify'

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

0 comments on commit 14e53da

Please sign in to comment.