Comparing version 2.0.10 to 2.0.11
{ | ||
"name": "internal", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "**/index.mjs", |
import { ComponentChild } from 'preact'; | ||
import { Proxy } from '..'; | ||
export default function connect<S>(proxy: Proxy<S>, component: ComponentChild): ComponentChild; | ||
export default function connect<S>(proxy: Proxy<S>, render: () => ComponentChild): ComponentChild; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
function connect(proxy, component) { | ||
function connect(proxy, render) { | ||
class Subscriber extends d {constructor(...args) { super(...args); Subscriber.prototype.__init.call(this); } | ||
@@ -18,3 +18,3 @@ __init() {this.update = () => { | ||
render() { | ||
return component | ||
return render() | ||
} | ||
@@ -21,0 +21,0 @@ } |
Sorry, the diff of this file is not supported yet
62003