mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
docs: fix incorrect function declaration in composables (#4715)
This commit is contained in:
parent
cc4d41824d
commit
d568081ca5
@ -27,7 +27,7 @@ Only `useFoo.ts` and `useBar/index.ts` would be searched for imports - and if th
|
|||||||
To get auto imports for `useBar/supportingFile.ts`, you have to re-export the composables you need from the `useBar/index.ts` file.
|
To get auto imports for `useBar/supportingFile.ts`, you have to re-export the composables you need from the `useBar/index.ts` file.
|
||||||
|
|
||||||
```js [composables/useBar/index.ts]
|
```js [composables/useBar/index.ts]
|
||||||
export default const useBar () {
|
export const useBar = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enables auto import for this export
|
// Enables auto import for this export
|
||||||
|
Loading…
Reference in New Issue
Block a user