Skip to content

Commit 02519bb

Browse files
authored
Merge pull request #52 from github/fix-listenforbind-type
fix(listenForBind): allow any `Node` to be given as first param
2 parents cd442ab + 0f3146a commit 02519bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bind.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ interface Subscription {
7070
* This returns a Subscription object which you can call `unsubscribe()` on to
7171
* stop further live updates.
7272
*/
73-
export function listenForBind(el = document, batchSize = 30): Subscription {
73+
export function listenForBind(el: Node = document, batchSize = 30): Subscription {
7474
let closed = false
7575

7676
const observer = new MutationObserver(mutations => {

0 commit comments

Comments
 (0)