Skip to content

Commit 89ae58a

Browse files
committed
feat: update baselib defs to 3.2.3
1 parent 5363e95 commit 89ae58a

File tree

3 files changed

+268
-49
lines changed

3 files changed

+268
-49
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2023-12-01 v3.12.2
2+
- 更新 API 定义到 3.2.3
3+
14
## 2023-10-17 v3.12.1
25
- 更新 API 定义到 3.1.2
36
- 补齐自定义组件实例的 `getPassiveEvent`, `setPassiveEvent` 方法

test/component.test.ts

+14-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Component({
6262
moved() {},
6363
detached() {},
6464
error(err) {
65-
expectType<Error>(err)
65+
expectType<WechatMiniprogram.Error>(err)
6666
},
6767
},
6868

@@ -491,3 +491,16 @@ Component<{}, {}, { fn(): void }>({
491491
}
492492
})
493493
}
494+
495+
{
496+
type CustomProperties = {
497+
customProp: string
498+
}
499+
Component<{}, {}, {}, CustomProperties>({
500+
lifetimes: {
501+
created() {
502+
this.customProp = 'customProp'
503+
}
504+
}
505+
})
506+
}

0 commit comments

Comments
 (0)