Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(readme): tidy typescript section #68

Merged
merged 3 commits into from
Apr 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,13 @@ $ npm install @fastify/send

### TypeScript

Due to the updates on `@types/mime@4` to remove the typing
support of `mime`. If you need to install the types, you
must use `@types/mime@3`.
To install types you must use `@types/mime@3`.
`@types/mime@4` removed the `mime` types.
Fdawgs marked this conversation as resolved.
Show resolved Hide resolved

```bash
$ npm install -D @types/mime@3
```

If you facing the problem of invalid types of `mime`, you
should check which exact package is linked to `@types/mime@4`
and file an issue to that package.

## API

```js
Expand Down
Loading