@tarojs/taro 4.1.8-beta.0 → 4.1.8-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/taro",
3
- "version": "4.1.8-beta.0",
3
+ "version": "4.1.8-beta.2",
4
4
  "description": "Taro framework",
5
5
  "author": "O2Team",
6
6
  "license": "MIT",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@types/postcss-url": "^10.0.4",
27
- "@tarojs/api": "4.1.8-beta.0",
28
- "@tarojs/runtime": "4.1.8-beta.0"
27
+ "@tarojs/api": "4.1.8-beta.2",
28
+ "@tarojs/runtime": "4.1.8-beta.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "html-webpack-plugin": "^5.6.0",
@@ -34,9 +34,9 @@
34
34
  "webpack-chain": "^6.5.1",
35
35
  "webpack-dev-server": "^4.15.2",
36
36
  "rollup": "^3.29.4",
37
- "@tarojs/components": "4.1.8-beta.0",
38
- "@tarojs/helper": "4.1.8-beta.0",
39
- "@tarojs/shared": "4.1.8-beta.0"
37
+ "@tarojs/components": "4.1.8-beta.2",
38
+ "@tarojs/shared": "4.1.8-beta.2",
39
+ "@tarojs/helper": "4.1.8-beta.2"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@types/react": "^18",
@@ -47,9 +47,9 @@
47
47
  "webpack": "^5",
48
48
  "webpack-chain": "^6",
49
49
  "webpack-dev-server": "^4",
50
- "@tarojs/components": "4.1.8-beta.0",
51
- "@tarojs/shared": "4.1.8-beta.0",
52
- "@tarojs/helper": "4.1.8-beta.0"
50
+ "@tarojs/components": "4.1.8-beta.2",
51
+ "@tarojs/helper": "4.1.8-beta.2",
52
+ "@tarojs/shared": "4.1.8-beta.2"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "@types/react": {
@@ -2,7 +2,7 @@ import Taro from '../../index'
2
2
 
3
3
  declare module '../../index' {
4
4
  namespace requestSubscribeMessage {
5
- interface Option {
5
+ interface BaseOption {
6
6
  /**
7
7
  * 需要订阅的消息模板的id的集合(注意:iOS客户端7.0.6版本、Android客户端7.0.7版本之后的一次性订阅/长期订阅才支持多个模板消息,iOS客户端7.0.5版本、Android客户端7.0.6版本之前的一次订阅只支持一个模板消息)消息模板id在[微信公众平台(mp.weixin.qq.com)-功能-订阅消息]中配置
8
8
  * @supported weapp, tt
@@ -24,6 +24,11 @@ declare module '../../index' {
24
24
  success?: (result: SuccessCallbackResult) => void
25
25
  }
26
26
 
27
+ type AtLeastOne<T, Keys extends keyof T = keyof T> =
28
+ Keys extends keyof T ? T & Required<Pick<T, Keys>> : never;
29
+
30
+ type Option = AtLeastOne<BaseOption, 'tmplIds' | 'entityIds'>;
31
+
27
32
  interface FailCallbackResult extends TaroGeneral.CallbackResult {
28
33
  /** 接口调用失败错误码 */
29
34
  errCode: number