File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const { data: meta } = await useAsyncData('my-component', () => $fetch('/api/com
49
49
You can also use the ` getComponentMeta ` utility directly to extract component metadata programmatically:
50
50
51
51
``` ts
52
- import { getComponentMeta } from ' nuxt-component-meta'
52
+ import { getComponentMeta } from ' nuxt-component-meta/parser '
53
53
54
54
// Basic usage
55
55
const meta = getComponentMeta (' components/MyComponent.vue' )
@@ -79,7 +79,8 @@ console.log(meta.exposed) // Exposed properties
79
79
The ` propsToJsonSchema ` utility converts Vue component props metadata into JSON Schema format, enabling validation and type checking:
80
80
81
81
``` 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'
83
84
84
85
// Get component metadata
85
86
const meta = getComponentMeta (' components/MyComponent.vue' )
You can’t perform that action at this time.
0 commit comments