22 lines
521 B
TypeScript
22 lines
521 B
TypeScript
import Core from '@any-touch/core';
|
|
import { TapContext } from '@any-touch/tap';
|
|
import type { AnyTouchEvent } from '@any-touch/shared';
|
|
/**
|
|
* 扩展插件映射
|
|
*/
|
|
declare module '@any-touch/core' {
|
|
interface PluginContextMap {
|
|
doubletap: TapContext;
|
|
}
|
|
interface EventMap {
|
|
doubletap: AnyTouchEvent;
|
|
}
|
|
}
|
|
/**
|
|
* "拖拽"识别器
|
|
* @param at AnyTouch实例
|
|
* @param options 识别器选项
|
|
* @returns 识别器实例
|
|
*/
|
|
export default function (at: Core): any;
|