@mini-types/global
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "@mini-types/global", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "TypeScript declarations for Alipay's mini program.", | ||
@@ -24,3 +24,3 @@ "scripts": {}, | ||
}, | ||
"gitHead": "66445cb963df80842181eb148d4305c971342b79" | ||
"gitHead": "2fea38b02fd646a2df5043638bb536186e71ba54" | ||
} |
@@ -297,2 +297,19 @@ export type UnknownRecord = Record<string, unknown>; | ||
export interface IGetTabBarMethod { | ||
/** | ||
* 获取自定义 tabBar 实例 | ||
* @version 2.7.20+ 可以通过判断 `this.getTabBar` 是否为一个函数做兼容性处理 | ||
*/ | ||
getTabBar< | ||
T extends any = IComponentInstance< | ||
UnknownRecord, | ||
UnknownRecord, | ||
UnknownRecord, | ||
UnknownRecord, | ||
UnknownRecord, | ||
[] | ||
> | ||
>(): T | undefined; | ||
} | ||
/** | ||
@@ -303,2 +320,32 @@ * Additional properties in Page instance, for module augmentation | ||
export interface IElementQuery { | ||
/** | ||
* 创建 SelectorQuery 对象实例。 | ||
* @version 基础库 2.7.4 起支持。 | ||
*/ | ||
createSelectorQuery(): any; | ||
/** | ||
* 创建 IntersectionObserver 对象实例。 | ||
* @version 基础库 2.7.4 起支持。 | ||
*/ | ||
createIntersectionObserver(): any; | ||
} | ||
export interface ISelectComponent { | ||
/** | ||
* 选取当前组件的创建者(即 AXML 中定义了此组件的组件),返回它的组件实例对象(会被 `ref` 影响)。 | ||
* | ||
* @version 基础库 2.7.22 起支持。 | ||
* @returns undefined | null | 页面 | 自定义组件 | 用户 ref 的 Object | ||
*/ | ||
selectOwnerComponent(): any; | ||
/** | ||
* 选取当前组件在事件冒泡路径上的父组件,返回它的组件实例对象(会被 `ref` 影响)。 | ||
* | ||
* @version 基础库 2.7.22 起支持。 | ||
* @returns undefined | null | 页面 | 自定义组件 | 用户 ref 的 Object | ||
*/ | ||
selectComposedParentComponent(): any; | ||
} | ||
/** | ||
@@ -322,17 +369,4 @@ * `this` type of life cycle hooks in App. | ||
): void; | ||
/** | ||
* 获取自定义 tabBar 实例 | ||
* @version 2.7.20+ 可以通过判断 `this.getTabBar` 是否为一个函数做兼容性处理 | ||
*/ | ||
getTabBar(): | ||
| IComponentInstance< | ||
UnknownRecord, | ||
UnknownRecord, | ||
UnknownRecord, | ||
UnknownRecord, | ||
UnknownRecord, | ||
[] | ||
> | ||
| undefined; | ||
/** | ||
* $spliceData 同样用于将数据从逻辑层发送到视图层,但是相比于 setData,在处理长列表的时候,其具有更高的性能。 | ||
@@ -358,3 +392,6 @@ * @param data | ||
readonly route: string; | ||
} & IPageInstanceAdditionalProperties<ExtraOptions>; | ||
} & IPageInstanceAdditionalProperties<ExtraOptions> & | ||
IGetTabBarMethod & | ||
IElementQuery & | ||
ISelectComponent; | ||
@@ -500,16 +537,2 @@ /** | ||
/** | ||
* 获取自定义 tabBar 实例 | ||
* @version 2.7.20+ 可以通过判断 `this.getTabBar` 是否为函数做兼容性处理 | ||
*/ | ||
getTabBar(): | ||
| IComponentInstance< | ||
UnknownRecord, | ||
UnknownRecord, | ||
UnknownRecord, | ||
UnknownRecord, | ||
UnknownRecord, | ||
[] | ||
> | ||
| undefined; | ||
/** | ||
* $spliceData 同样用于将数据从逻辑层发送到视图层,但是相比于 setData,在处理长列表的时候,其具有更高的性能。 | ||
@@ -524,3 +547,5 @@ * @param data | ||
): void; | ||
}; | ||
} & IGetTabBarMethod & | ||
IElementQuery & | ||
ISelectComponent; | ||
@@ -527,0 +552,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18458
662