mini-types
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "mini-types", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "TypeScript declarations for Alipay's mini program.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -61,3 +61,3 @@ /** | ||
*/ | ||
function offNetworkStatusChange(): void; | ||
function offNetworkStatusChange(callback?: (res: IOnNetworkStatusChangeEvent) => void): void; | ||
} |
@@ -42,7 +42,5 @@ /** | ||
/** | ||
* 系统名:Android,iOS | ||
* * 注意: 小程序文档中写的Android/iOS, 实际调用返回值为 android/ios/iphone(低版本) | ||
* 未避免小程序框架后续改造造成不兼容,建议转换成小写之后再进行比较 | ||
* 系统名 | ||
*/ | ||
readonly platform: 'android' | 'ios' | 'iphone'; | ||
readonly platform: 'Android' | 'iOS' | 'iPhone OS'; | ||
@@ -49,0 +47,0 @@ /** |
@@ -216,2 +216,41 @@ /** | ||
function compressImage(options: ICompressImageOptions): void; | ||
interface IVideoContext { | ||
/** | ||
* 播放 | ||
*/ | ||
play(): void; | ||
/** | ||
* 暂停 | ||
*/ | ||
pause(): void; | ||
/** | ||
* 停止 | ||
*/ | ||
stop(): void; | ||
/** | ||
* 跳转到指定位置,单位秒(s) | ||
*/ | ||
seek(position: number): void; | ||
/** | ||
* 进入全屏,0为正常竖屏,90为横屏,-90反向横屏。 | ||
*/ | ||
requestFullScreen(direction: 0 | 90 | -90): void; | ||
/** | ||
* 退出全屏 | ||
*/ | ||
exitFullScreen(): void; | ||
/** | ||
* 显示状态栏,仅在 iOS 全屏下有效 | ||
*/ | ||
showStatusBar(): void; | ||
/** | ||
* 隐藏状态栏,仅在 iOS 全屏下有效 | ||
*/ | ||
hideStatusBar(): void; | ||
} | ||
/** | ||
* 获取视频上下文 | ||
*/ | ||
function createVideoContext(id: string): IVideoContext; | ||
} |
@@ -16,1 +16,2 @@ /// <reference path="./navigator.d.ts" /> | ||
/// <reference path="./optionsSelect.d.ts" /> | ||
/// <reference path="./font.d.ts" /> |
@@ -17,4 +17,4 @@ // TypeScript Version: 3.3 | ||
readonly tagName: string; | ||
readonly dataset: Readonly<Record<string, string | number>>; | ||
readonly targetDataset: Readonly<Record<string, string | number>>; | ||
readonly dataset: Readonly<Record<string, any>>; | ||
readonly targetDataset: Readonly<Record<string, any>>; | ||
readonly offsetLeft: number; | ||
@@ -25,3 +25,3 @@ readonly offsetTop: number; | ||
readonly tagName: string; | ||
readonly dataset: Readonly<Record<string, string | number>>; | ||
readonly dataset: Readonly<Record<string, any>>; | ||
readonly offsetLeft: number; | ||
@@ -28,0 +28,0 @@ readonly offsetTop: number; |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
5958
0
172957