revert unrelated changes

pull/10800/head
Simon Holthausen 2 years ago
parent 5b78c24baf
commit 50a84aac1e

@ -12,7 +12,7 @@ import * as $ from '../internal/index.js';
* @template {Record<string, any>} Slots
*
* @param {import('../main/public.js').ComponentConstructorOptions<Props> & {
* component: typeof import('../main/public.js').SvelteComponent<Props, Events, Slots>;
* component: import('../main/public.js').SvelteComponent<Props, Events, Slots>;
* immutable?: boolean;
* hydrate?: boolean;
* recover?: boolean;

@ -170,5 +170,5 @@ asLegacyComponent.anExport;
const x: typeof asLegacyComponent = createClassComponent({
target: null as any,
hydrate: true,
component: NewComponent
component: newComponent
});

@ -1,4 +1,4 @@
import { type Snippet } from 'svelte';
import type { Snippet } from 'svelte';
const return_type: ReturnType<Snippet> = null as any;

@ -1729,17 +1729,7 @@ declare module 'svelte/legacy' {
*
* */
export function createClassComponent<Props extends Record<string, any>, Exports extends Record<string, any>, Events extends Record<string, any>, Slots extends Record<string, any>>(options: ComponentConstructorOptions<Props> & {
component: {
new (options: ComponentConstructorOptions<Props & (Props extends {
children?: any;
} ? {} : Slots extends {
default: any;
} ? {
children?: ((this: void) => unique symbol & {
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
}) | undefined;
} : {})>): SvelteComponent<Props, Events, Slots>;
};
component: SvelteComponent<Props, Events, Slots>;
immutable?: boolean | undefined;
hydrate?: boolean | undefined;
recover?: boolean | undefined;

Loading…
Cancel
Save