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(server-utils): fix typos #2790

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Changes from all commits
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
8 changes: 4 additions & 4 deletions docs/1.guide/1.utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ icon: ri:tools-line

# Server Utils

> Enjoy auto imported server utils and extend with your own utils.
> Enjoy auto-imported server utils and extend with your own utils.

## Auto imports

Expand All @@ -13,15 +13,15 @@ It is because Nitro uses [unjs/unimport](https://github.com/unjs/unimport) to au

## H3 utils

Nitro enables all [h3 utils](https://h3.unjs.io/utils) as auto imports so you can use `defineEventHandler`, `readBody`, etc without manually importing them.
Nitro enables all [h3 utils](https://h3.unjs.io/utils) as auto imports so you can use `defineEventHandler`, `readBody`, etc. without manually importing them.

::read-more{title="H3 Docs" to="https://h3.unjs.io/utils"}
::


### `utils` directory

You can add your application specific utils inside `utils/` directory and they will be auto imported when used.
You can add your application specific utils inside `utils/` directory and they will be auto-imported when used.
Every export in the `utils` directory and its subdirectories will become available globally in your application.


Expand Down Expand Up @@ -63,7 +63,7 @@ Check [the source code](https://github.com/unjs/nitro/blob/v2/src/core/config/re
::

::read-more{to="/guide/typescript"}
The types are auto generated for global auto-imports when running the `prepare` or `dev` command. See [TypeScript](/guide/typescript) guide, for IDE support.
The types are auto-generated for global auto-imports when running the `prepare` or `dev` command. See [TypeScript](/guide/typescript) guide, for IDE support.
::

## Manual imports
Expand Down