Skip to content

Commit 62300f7

Browse files
committed
regenerate types
1 parent 1e4c6a2 commit 62300f7

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

packages/svelte/types/index.d.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -366,19 +366,18 @@ declare module 'svelte' {
366366
/** Anything except a function */
367367
type NotFunction<T> = T extends Function ? never : T;
368368
/**
369-
* Create a snippet imperatively using mount, hydrate and render functions.
369+
* Create a snippet programmatically
370370
* */
371-
export function createRawSnippet<Params extends unknown[]>({ mount, hydrate }: {
372-
mount?: (...params: Getters<Params>) => Element;
373-
hydrate?: (element: Element, ...params: Getters<Params>) => void;
374-
render?: (...params: Params) => string;
371+
export function createRawSnippet<Params extends unknown[]>({ render, update }: {
372+
render: (...params: Params) => string;
373+
update?: (element: Element, ...params: Getters<Params>) => void;
375374
}): import("svelte").Snippet<Params>;
376375
/**
377376
* Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component.
378377
* Transitions will play during the initial render unless the `intro` option is set to `false`.
379378
*
380379
* */
381-
function mount_1<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>, options: {} extends Props ? {
380+
export function mount<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>, options: {} extends Props ? {
382381
target: Document | Element | ShadowRoot;
383382
anchor?: Node;
384383
props?: Props;
@@ -397,7 +396,7 @@ declare module 'svelte' {
397396
* Hydrates a component on the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component
398397
*
399398
* */
400-
function hydrate_1<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>, options: {} extends Props ? {
399+
export function hydrate<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>, options: {} extends Props ? {
401400
target: Document | Element | ShadowRoot;
402401
props?: Props;
403402
events?: Record<string, (e: any) => any>;
@@ -462,7 +461,7 @@ declare module 'svelte' {
462461
[K in keyof T]: () => T[K];
463462
};
464463

465-
export { hydrate_1 as hydrate, mount_1 as mount };
464+
export {};
466465
}
467466

468467
declare module 'svelte/action' {

0 commit comments

Comments
 (0)