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

mini-types

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mini-types - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

types/api/ui/font.d.ts

2

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

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