From d6f23f4a31884dbf4fd1c5873dff88f2e7c4f41a Mon Sep 17 00:00:00 2001 From: Brian Evans <53117772+mrbrianevans@users.noreply.github.com> Date: Wed, 1 Jun 2022 14:32:19 +0100 Subject: [PATCH] Improve typescript example in README (#185) Changed the import to a type-only import, which is better practice in typescript. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aba2fb7..f6fda6e 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ fastify.get('/', (req, reply) => { ## TypeScript Example ```ts -import { FastifyCookieOptions } from '@fastify/cookie' +import type { FastifyCookieOptions } from '@fastify/cookie' import cookie from '@fastify/cookie' import fastify from 'fastify'