remove block.d

pull/10880/head
Rich Harris 2 years ago
parent ad78bcdb74
commit 6c715f417f

@ -1,7 +1,4 @@
/** @returns {import('#client').Block} */
export function create_block() {
return {
// dom
d: null
};
return {};
}

@ -193,7 +193,6 @@ function close_template(dom, is_fragment, anchor) {
}
/** @type {import('#client').Effect} */ (current_effect).dom = current;
/** @type {import('#client').Block} */ (current_block).d = current;
return current;
}

@ -212,10 +212,7 @@ function _mount(Component, options) {
should_intro = options.intro ?? false;
/** @type {import('#client').Block} */
const block = {
// dom
d: null
};
const block = {};
/** @type {Exports} */
// @ts-expect-error will be defined because the render effect runs synchronously

@ -51,10 +51,7 @@ export type TemplateNode = Text | Element | Comment;
export type Dom = TemplateNode | TemplateNode[];
export interface Block {
/** dom */
d: null | Dom;
}
export interface Block {}
export type EachState = {
/** flags */

Loading…
Cancel
Save