@mini-types/global
Advanced tools
Comparing version 3.0.7 to 3.0.8-next-1686032552.0
{ | ||
"name": "@mini-types/global", | ||
"version": "3.0.7", | ||
"version": "3.0.8-next-1686032552.0", | ||
"description": "TypeScript declarations for Alipay's mini program.", | ||
@@ -24,3 +24,3 @@ "scripts": {}, | ||
}, | ||
"gitHead": "6d50a10442cad9f113a3925afd7ce34020053e10" | ||
"gitHead": "c59706f074e8fc4621b3929529419daa293c4198" | ||
} |
export type IAppOnLaunchOptions<Query extends Record<string, string>> = | ||
MiniProgram.App.LaunchOptions<Query>; | ||
export interface IRequirePluginAsync< | ||
Target extends Record<string, any> = Record<string, any> | ||
> { | ||
<K extends keyof Target>(pluginName: K): Promise<Target[K]>; | ||
<Result extends any>(pluginName: string): Promise<Result>; | ||
} | ||
export interface IRequirePlugin< | ||
@@ -8,2 +15,3 @@ Target extends Record<string, any> = Record<string, any> | ||
<Result extends any>(pluginName: string): Result; | ||
async: IRequirePluginAsync; | ||
} | ||
@@ -25,2 +33,9 @@ | ||
export interface Require { | ||
<T extends any>(path: string): T; | ||
<T extends any>(path: string, cb?: (o: T) => void): void; | ||
async<T extends any>(path: string): Promise<T>; | ||
} | ||
declare global { | ||
@@ -47,2 +62,4 @@ /** | ||
const require: Require; | ||
/** | ||
@@ -49,0 +66,0 @@ * App's constructor |
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
229623
5748
2