MCPcopy
hub / github.com/sveltejs/svelte / createClassComponent

Function createClassComponent

packages/svelte/src/legacy/legacy-client.js:32–35  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

30 * @returns {SvelteComponent<Props, Events, Slots> & Exports}
31 */
32export function createClassComponent(options) {
33 // @ts-expect-error $$prop_def etc are not actually defined
34 return new Svelte4Component(options);
35}
36
37/**
38 * Takes the component function and returns a Svelte 4 compatible component constructor.

Callers 5

connectedCallbackMethod · 0.90
run_test_variantFunction · 0.90
component.tsFile · 0.90
driver.jsFile · 0.90
test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected