summaryrefslogtreecommitdiff
path: root/packages/astro/src/internal/element-registry.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/src/internal/element-registry.ts')
-rw-r--r--packages/astro/src/internal/element-registry.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/astro/src/internal/element-registry.ts b/packages/astro/src/internal/element-registry.ts
index 2b9ac1cbf..a0124523f 100644
--- a/packages/astro/src/internal/element-registry.ts
+++ b/packages/astro/src/internal/element-registry.ts
@@ -1,4 +1,4 @@
-import type { AstroComponentProps } from './__astro_component';
+import type { AstroComponentMetadata } from '../@types/astro';
type ModuleCandidates = Map<any, string>;
@@ -35,13 +35,13 @@ class AstroElementRegistry {
return specifier;
}
- astroComponentArgs(tagName: string, props: AstroComponentProps) {
+ astroComponentArgs(tagName: string, metadata: AstroComponentMetadata) {
const specifier = this.findCached(tagName);
- const outProps: AstroComponentProps = {
- ...props,
- componentUrl: specifier || props.componentUrl,
+ const outMeta: AstroComponentMetadata = {
+ ...metadata,
+ componentUrl: specifier || metadata.componentUrl,
};
- return [tagName, outProps];
+ return [tagName, outMeta];
}
}