Skip to content

Commit

Permalink
Remove last ts refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal committed Nov 26, 2024
1 parent 2e50081 commit 954950e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/interactivity/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ export const splitTask = () => {
* @param notify The function that notifies listeners when the value is flushed.
* @return The Flusher object with `flush` and `dispose` properties.
*/
function createFlusher( compute: () => void, notify: () => void ): Flusher {
function createFlusher( compute: () => unknown, notify: () => void ): Flusher {
let flush: () => void = () => undefined;
const dispose = effect( function ( this: any ): void {
const dispose = effect( function ( this: any ) {
flush = this.c.bind( this );
this.x = compute;
this.c = notify;
Expand Down
1 change: 1 addition & 0 deletions packages/interactivity/src/vdom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export function toVdom( root: Node ): Array< ComponentChild > {
}, {} );
}

// @ts-expect-error Fixed in upcoming preact release https://github.com/preactjs/preact/pull/4334
if ( localName === 'template' ) {
props.content = [
...( elementNode as HTMLTemplateElement ).content.childNodes,
Expand Down

0 comments on commit 954950e

Please sign in to comment.