Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mini-types/global

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mini-types/global - npm Package Compare versions

Comparing version 1.0.31 to 1.0.32-rc-1654160434.0

LICENSE

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc