Skip to content

Commit 37aec18

Browse files
committed
docs: update imports
1 parent b6bcde8 commit 37aec18

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const { data: meta } = await useAsyncData('my-component', () => $fetch('/api/com
4949
You can also use the `getComponentMeta` utility directly to extract component metadata programmatically:
5050

5151
```ts
52-
import { getComponentMeta } from 'nuxt-component-meta'
52+
import { getComponentMeta } from 'nuxt-component-meta/parser'
5353

5454
// Basic usage
5555
const meta = getComponentMeta('components/MyComponent.vue')
@@ -79,7 +79,8 @@ console.log(meta.exposed) // Exposed properties
7979
The `propsToJsonSchema` utility converts Vue component props metadata into JSON Schema format, enabling validation and type checking:
8080

8181
```ts
82-
import { getComponentMeta, propsToJsonSchema } from 'nuxt-component-meta'
82+
import { getComponentMeta } from 'nuxt-component-meta/parser'
83+
import { propsToJsonSchema } from 'nuxt-component-meta/utils'
8384

8485
// Get component metadata
8586
const meta = getComponentMeta('components/MyComponent.vue')

0 commit comments

Comments
 (0)