Skip to content

Commit f829891

Browse files
committed
fix: declare missing properties in fnHandler class for TypeScript compatibility
1 parent 0bb9abe commit f829891

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/bind/spec/bindingHandlerBehaviors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('BindingHandler behaviors', function () {
4848
v: Observable
4949
x: Observable
5050
y: Observable
51-
51+
declare computed: any
5252
constructor(...args) {
5353
super(...args)
5454
const v = (this.v = koObservable(0))
@@ -92,6 +92,7 @@ describe('BindingHandler behaviors', function () {
9292
let obs = koObservable(),
9393
handlerInstance
9494
bindingHandlers.fnHandler = class extends BindingHandler {
95+
declare subscribe: any
9596
constructor(...args) {
9697
super(...args)
9798
handlerInstance = this

0 commit comments

Comments
 (0)