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

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