// Utility type for ensuring backwards compatibility on a type level: If there's a default slot, add 'children' to the props if it doesn't exist there already
// if you're curious why this is here and not declared as an unexported type from `public.d.ts`, try putting it there
// and see what happens in the output `index.d.ts` -- it breaks, presumably because of a TypeScript compiler bug.
// Utility type for ensuring backwards compatibility on a type level: If there's a default slot, add 'children' to the props if it doesn't exist there already
// Utility type for ensuring backwards compatibility on a type level: If there's a default slot, add 'children' to the props if it doesn't exist there already
typePropsWithChildren<Props,Slots>=Props&
(Propsextends{children?: any}
?{}
:Slotsextends{default:any}
?{children?: Snippet}
:{});
/**
/**
*CanbeusedtocreatestronglytypedSveltecomponents.
*CanbeusedtocreatestronglytypedSveltecomponents.
*
*
@ -319,6 +311,14 @@ declare module 'svelte' {
*Anythingexceptafunction
*Anythingexceptafunction
*/
*/
typeNotFunction<T>=TextendsFunction?never:T;
typeNotFunction<T>=TextendsFunction?never:T;
// Utility type for ensuring backwards compatibility on a type level: If there's a default slot, add 'children' to the props if it doesn't exist there already
// Utility type for ensuring backwards compatibility on a type level: If there's a default slot, add 'children' to the props if it doesn't exist there already
_:'functions passed to {@render ...} tags must use the `Snippet` type imported from "svelte"';
_:'functions passed to {@render ...} tags must use the `Snippet` type imported from "svelte"';
};
};
};
};
// Utility type for ensuring backwards compatibility on a type level: If there's a default slot, add 'children' to the props if it doesn't exist there already