Skip to content

Commit

Permalink
Improve typescript example in README (#185)
Browse files Browse the repository at this point in the history
Changed the import to a type-only import, which is better practice in typescript.
  • Loading branch information
mrbrianevans authored Jun 1, 2022
1 parent 6525554 commit d6f23f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit d6f23f4

Please sign in to comment.