Skip to content

Commit 0c0f887

Browse files
committed
fix(types): resolve TypeScript spread e component type errors
- Adiciona type casting para model como Record<string, any> nos v-bind - Corrige tipo do component prop no PlaygroundBuilder com type assertion - Resolve erros TS2698 e TS2322 que apareciam apenas no CI
1 parent 06241ef commit 0c0f887

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docgen/PreviewBuilder.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<component
44
:is="component"
55
v-if="!$slots.container && !withTrigger"
6-
v-bind="{...$attrs, ...(model || {}) }"
6+
v-bind="{...$attrs, ...((model as Record<string, any>) || {}) }"
77
v-on="internalEvents"
88
>
99
<template
@@ -28,7 +28,7 @@
2828

2929
<component
3030
:is="component"
31-
v-bind="{...$attrs, ...(model || {}) }"
31+
v-bind="{...$attrs, ...((model as Record<string, any>) || {}) }"
3232
v-on="internalEvents"
3333
>
3434
<template
@@ -52,7 +52,7 @@
5252

5353
<PlaygroundBuilder
5454
v-if="!static"
55-
:component="component.name ?? component"
55+
:component="(component.name ?? component) as string"
5656
:args="model"
5757
/>
5858
</template>

0 commit comments

Comments
 (0)