We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b43e54 commit b9aacb6Copy full SHA for b9aacb6
test/component.test.ts
@@ -120,6 +120,17 @@ Component({
120
},
121
})
122
123
+expectError(
124
+ Component({
125
+ custom: 1,
126
+ methods: {
127
+ f() {
128
+ this.custom
129
+ },
130
131
+ }),
132
+)
133
+
134
interface Config {
135
a: number
136
}
test/issue.test.ts
@@ -464,7 +464,6 @@ import WX = WechatMiniprogram
464
465
466
Component({
467
- _timer: '',
468
properties: {
469
bar: {
470
type: Object,
@@ -483,7 +482,6 @@ import WX = WechatMiniprogram
483
482
test() {
484
expectType<Foo>(this.data.bar)
485
expectType<Foo[]>(this.getData())
486
- expectType<string>(this._timer)
487
488
489
0 commit comments