Skip to content

Commit b9aacb6

Browse files
committed
revert: TCustomInstanceProperty
1 parent 5b43e54 commit b9aacb6

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

test/component.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,17 @@ Component({
120120
},
121121
})
122122

123+
expectError(
124+
Component({
125+
custom: 1,
126+
methods: {
127+
f() {
128+
this.custom
129+
},
130+
},
131+
}),
132+
)
133+
123134
interface Config {
124135
a: number
125136
}

test/issue.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,6 @@ import WX = WechatMiniprogram
464464
}
465465

466466
Component({
467-
_timer: '',
468467
properties: {
469468
bar: {
470469
type: Object,
@@ -483,7 +482,6 @@ import WX = WechatMiniprogram
483482
test() {
484483
expectType<Foo>(this.data.bar)
485484
expectType<Foo[]>(this.getData())
486-
expectType<string>(this._timer)
487485
},
488486
}
489487
})

0 commit comments

Comments
 (0)