Socket
Socket
Sign inDemoInstall

@any-touch/shared

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@any-touch/shared - npm Package Compare versions

Comparing version 2.0.0-alpha.0 to 2.0.0-alpha.1

24

dist/types.d.ts

@@ -145,2 +145,26 @@ import Core from '@any-touch/core';

}
import tap from '@any-touch/tap';
import press from '@any-touch/press';
import swipe from '@any-touch/swipe';
import pan from '@any-touch/pan';
import pinch from '@any-touch/pinch';
import rotate from '@any-touch/rotate';
export declare type TapContext = ReturnType<typeof tap>;
export declare type PressContext = ReturnType<typeof press>;
export declare type SwipeContext = ReturnType<typeof swipe>;
export declare type PanContext = ReturnType<typeof pan>;
export declare type PinchContext = ReturnType<typeof pinch>;
export declare type RotateContext = ReturnType<typeof rotate>;
/**
* 插件实例映射
* {名称: 插件实例}
*/
export interface PluginContextMap {
tap: TapContext;
press: PressContext;
swipe: SwipeContext;
pan: PanContext;
pinch: PinchContext;
rotate: RotateContext;
}
export declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;

4

package.json
{
"name": "@any-touch/shared",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"description": "any-touch内部的公共函数.",

@@ -16,3 +16,3 @@ "main": "dist/index.js",

"sideEffects": false,
"gitHead": "3fb899bb8ad845ab52fa4a932cc895637e173723"
"gitHead": "a5497dd4d042aeb09ea9c6d0414ed36fbe9c7105"
}
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