@mini-types/global
Advanced tools
Comparing version 1.0.31 to 1.0.32-rc-1654160434.0
{ | ||
"name": "@mini-types/global", | ||
"version": "1.0.31", | ||
"version": "1.0.32-rc-1654160434.0", | ||
"description": "TypeScript declarations for Alipay's mini program.", | ||
@@ -24,3 +24,3 @@ "scripts": {}, | ||
}, | ||
"gitHead": "ef192bf2f1363088b551a166ee5cec950c1255e8" | ||
"gitHead": "b66edf12b3e6b8ceca3ce6d6593da5c1dbb7be58" | ||
} |
@@ -597,5 +597,13 @@ export type UnknownRecord = Record<string, unknown>; | ||
declare global { | ||
/** | ||
* 使用插件提供的 JS 接口,函数返回值为 \`插件\` 通过 \`main\` 字段暴露的 JS 接口。 | ||
*/ | ||
const requirePlugin: IRequirePlugin; | ||
/** | ||
* Extra `this` for App instance. | ||
*/ | ||
export interface IGlobalMiniProgramExtraThis4App {} | ||
/** | ||
* App's constructor | ||
@@ -607,5 +615,35 @@ * @link https://opendocs.alipay.com/mini/framework/app-detail | ||
ExtraOptions extends Record<string, unknown> = {} | ||
>(opts: IUserAppOptions<ExtraThis, ExtraOptions>): void; | ||
>( | ||
opts: IUserAppOptions< | ||
ExtraThis & IGlobalMiniProgramExtraThis4App, | ||
ExtraOptions | ||
> | ||
): void; | ||
/** | ||
* Get App. | ||
* @link https://opendocs.alipay.com/mini/framework/get-app | ||
*/ | ||
function getApp< | ||
ExtraThis = {}, | ||
ExtraOptions extends Record<string, unknown> = {} | ||
>(): IAppInstance<ExtraThis & IGlobalMiniProgramExtraThis4App, ExtraOptions>; | ||
/** | ||
* Extra `this` for Page instance. | ||
*/ | ||
export interface IGlobalMiniProgramExtraThis4Page {} | ||
/** | ||
* Extra `this` for Component instance. | ||
*/ | ||
export interface IGlobalMiniProgramExtraThis4Component {} | ||
/** | ||
* Get Current Pages | ||
* @link https://opendocs.alipay.com/mini/framework/getcurrentpages | ||
*/ | ||
export function getCurrentPages(): IPageInstance<object, {}, {}>[]; | ||
/** | ||
* Page's constructor | ||
@@ -618,3 +656,9 @@ * @link https://opendocs.alipay.com/mini/framework/page-detail | ||
ExtraOptions extends Record<string, unknown> = {} | ||
>(opts: IUserPageOptions<Data, ExtraThis, ExtraOptions>): void; | ||
>( | ||
opts: IUserPageOptions< | ||
Data, | ||
ExtraThis & IGlobalMiniProgramExtraThis4Page, | ||
ExtraOptions | ||
> | ||
): void; | ||
@@ -637,3 +681,3 @@ /** | ||
Methods, | ||
ExtraThis, | ||
ExtraThis & IGlobalMiniProgramExtraThis4Component, | ||
ExtraOptions, | ||
@@ -640,0 +684,0 @@ Mixin |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
17842
4
643
2