mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix: fixed typo
This commit is contained in:
parent
9bb36478ff
commit
d2540e45d0
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
title: 'shared'
|
title: 'shared'
|
||||||
head.title: 'shared/'
|
head.title: 'shared/'
|
||||||
description: Use the shared/ directory to share functionality between the Vue app and the Nitro server.
|
description: 'Use the shared/ directory to share functionality between the Vue app and the Nitro server.'
|
||||||
navigation.icon: i-ph-folder
|
navigation.icon: 'i-ph-folder'
|
||||||
---
|
---
|
||||||
|
|
||||||
The `shared/` directory allows you to share code that can be used in both the Vue app and the Nitro server.
|
The `shared/` directory allows you to share code that can be used in both the Vue app and the Nitro server.
|
||||||
@ -33,7 +33,7 @@ export default function capitalize (input: string) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**Usage:** You can now use auto-imported utility functions in `.js`, `.ts` and `.vue` files within your Vue app and the `server/` directory.
|
**Usage:** You can now use auto-imported utility functions in `.js`, `.ts` and `.vue` files within your Vue app and the `server/` directory.
|
||||||
|
|
||||||
If you have set `compatibilityVersion: 4` in your `nuxt.config.ts`, you can use the auto-imported functions in the `app/` directory. This is part of Nuxt's progressive compatibility features preparing for version 4.
|
If you have set `compatibilityVersion: 4` in your `nuxt.config.ts`, you can use the auto-imported functions in the `app/` directory. This is part of Nuxt's progressive compatibility features preparing for version 4.
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ Only files in the `shared/utils/` and `shared/types/` directories will be auto-i
|
|||||||
```bash [Directory Structure]
|
```bash [Directory Structure]
|
||||||
-| shared/
|
-| shared/
|
||||||
---| capitalize.ts # Not auto-imported
|
---| capitalize.ts # Not auto-imported
|
||||||
---| fotmatters
|
---| formatters
|
||||||
-----| lower.ts # Not auto-imported
|
-----| lower.ts # Not auto-imported
|
||||||
---| utils/
|
---| utils/
|
||||||
-----| lower.ts # Auto-imported
|
-----| lower.ts # Auto-imported
|
||||||
|
Loading…
Reference in New Issue
Block a user