failing test

dynamic-component-types
Ignatius Bagus 11 months ago
parent d19e622e90
commit 212bdf6001

@ -142,6 +142,21 @@ instance.$set({});
instance.$destroy();
instance.anExport === 1;
function dynamic<
T extends typeof SvelteComponent,
Props = ComponentProps<T>
>(component: T, props: Props) {
mount(component, {
target: null as any as Document | Element | ShadowRoot | Text | Comment,
props
});
createRoot(component, {
target: null as any as Document | Element | ShadowRoot | Text | Comment,
props
});
}
// --------------------------------------------------------------------------- interop
const AsLegacyComponent = asClassComponent(newComponent);

Loading…
Cancel
Save