pull/13674/head
Dominic Gannaway 2 years ago
parent d6b21f4f6d
commit cdfa314ea1

@ -330,17 +330,19 @@ declare module 'svelte' {
* Used to control transition playback on initial render. The default value is `true` to run transitions. * Used to control transition playback on initial render. The default value is `true` to run transitions.
*/ */
intro?: boolean; intro?: boolean;
} & ({} extends Props ? { } & ({} extends Props
? {
/** /**
* Component properties. * Component properties.
*/ */
props?: Props; props?: Props;
} : { }
: {
/** /**
* Component properties. * Component properties.
*/ */
props: Props; props: Props;
}) });
/** /**
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM. * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
* It must be called during the component's initialisation (but doesn't need to live *inside* the component; * It must be called during the component's initialisation (but doesn't need to live *inside* the component;

Loading…
Cancel
Save