Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

docs(schema): add example and description for imports.dirs #9346

Merged
merged 1 commit into from Nov 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/schema/src/config/adhoc.ts
Expand Up @@ -31,6 +31,18 @@ export default defineUntypedSchema({
*/
imports: {
global: false,

/**
* An array of custom directories that will be auto-imported.
* Note that this option will not override the default directories (~/composables, ~/utils).
* @example
* ```js
* imports: {
* // Auto-import pinia stores defined in `~/stores`
* dirs: ['stores']
* }
* ```
*/
dirs: []
},

Expand Down