Skip to content

Commit

Permalink
revert: TCustomInstanceProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
lv-z-l committed Sep 3, 2024
1 parent 5b43e54 commit b9aacb6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 11 additions & 0 deletions test/component.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,17 @@ Component({
},
})

expectError(
Component({
custom: 1,
methods: {
f() {
this.custom
},
},
}),
)

interface Config {
a: number
}
Expand Down
2 changes: 0 additions & 2 deletions test/issue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ import WX = WechatMiniprogram
}

Component({
_timer: '',
properties: {
bar: {
type: Object,
Expand All @@ -483,7 +482,6 @@ import WX = WechatMiniprogram
test() {
expectType<Foo>(this.data.bar)
expectType<Foo[]>(this.getData())
expectType<string>(this._timer)
},
}
})
Expand Down

0 comments on commit b9aacb6

Please sign in to comment.