pull/3201/head
Richard Harris 5 years ago
parent e5be2ec348
commit 8f959559d5

2858
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -238,7 +238,12 @@ function get_event_handler(
block: Block, block: Block,
name: string, name: string,
snippet: string snippet: string
) { ): {
uses_context: boolean;
mutation: string;
contextual_dependencies: Set<string>;
snippet?: string;
} {
const value = get_value_from_dom(renderer, binding.parent, binding); const value = get_value_from_dom(renderer, binding.parent, binding);
const store = binding.object[0] === '$' ? binding.object.slice(1) : null; const store = binding.object[0] === '$' ? binding.object.slice(1) : null;

@ -84,7 +84,7 @@ export default class InlineComponentWrapper extends Wrapper {
}); });
this.fragment = new FragmentWrapper(renderer, default_slot, node.children, this, strip_whitespace, next_sibling); this.fragment = new FragmentWrapper(renderer, default_slot, node.children, this, strip_whitespace, next_sibling);
const dependencies = new Set(); const dependencies: Set<string> = new Set();
// TODO is this filtering necessary? (I *think* so) // TODO is this filtering necessary? (I *think* so)
default_slot.dependencies.forEach(name => { default_slot.dependencies.forEach(name => {

@ -185,7 +185,7 @@ export default function tag(parser: Parser) {
} }
} }
const unique_names = new Set(); const unique_names: Set<string> = new Set();
let attribute; let attribute;
while ((attribute = read_attribute(parser, unique_names))) { while ((attribute = read_attribute(parser, unique_names))) {

@ -95,7 +95,7 @@ export function create_ssr_component(fn) {
render: (props = {}, options = {}) => { render: (props = {}, options = {}) => {
on_destroy = []; on_destroy = [];
const result = { head: '', css: new Set() }; const result: { head: string, css: Set<{ map: null, code: string }> } = { head: '', css: new Set() };
const html = $$render(result, props, {}, options); const html = $$render(result, props, {}, options);
run_all(on_destroy); run_all(on_destroy);

Loading…
Cancel
Save