docs: fix incorrect function declaration in composables (#4715)

This commit is contained in:
Maksim Nedoshev 2022-04-29 21:07:43 +03:00 committed by GitHub
parent cc4d41824d
commit d568081ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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