Merge branch 'master' into doc-restructure

pull/2986/head
Richard Harris 5 years ago
commit de7b8832d8

@ -6,7 +6,7 @@ import render_ssr from './render-ssr/index';
import { CompileOptions, Warning } from '../interfaces';
import Component from './Component';
import fuzzymatch from '../utils/fuzzymatch';
import { get_name_from_filename } from './utils/get_name_from_filename';
import get_name_from_filename from './utils/get_name_from_filename';
const valid_options = [
'format',

@ -0,0 +1,19 @@
declare module '*.svelte' {
type Props = Record<string, any>;
export default class {
constructor(options: {
target: Element;
anchor?: Element;
props?: Props;
hydrate?: boolean;
intro?: boolean;
});
$set(props: Props): void;
$on<T = any>(event: string, callback: (event: CustomEvent<T>) => void): () => void;
$destroy(): void;
[accessor: string]: any;
}
}

@ -1,3 +1,5 @@
import './ambient';
export {
onMount,
onDestroy,

Loading…
Cancel
Save