Skip to content

Commit

Permalink
docs: fix incorrect function declaration in composables (nuxt#4715)
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem authored Apr 29, 2022
1 parent cc4d418 commit d568081
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

```js [composables/useBar/index.ts]
export default const useBar () {
export const useBar = () => {
}

// Enables auto import for this export
Expand Down

0 comments on commit d568081

Please sign in to comment.