@bytedance/mona-client-web
Version:
web for mona
33 lines (32 loc) • 1.01 kB
TypeScript
import React from 'react';
import { TouchEvent, Touch, BaseEvent } from '@bytedance/mona';
export declare function formatTouchEvent({ event, type }: {
event: React.TouchEvent;
type?: string;
}): TouchEvent<Touch>;
export declare function formatMouseEvent({ event, type }: {
event: React.MouseEvent;
type?: string;
}): TouchEvent<Touch>;
export declare function formatSyntheticEvent({ event, type }: {
event: React.SyntheticEvent;
type?: string;
}): BaseEvent;
export declare function formatTransitionEvent({ event, type, }: {
event: React.TransitionEvent;
type?: string;
}): TouchEvent<Touch, {
elapsedTime: number;
}>;
export declare function formatAnimationEvent({ event, type }: {
event: React.AnimationEvent;
type?: string;
}): TouchEvent;
export declare function genEvent({ detail, type }: {
detail: any;
type?: string;
}): TouchEvent;
export declare function formatFormEvent({ event, type, }: {
event: React.FormEvent;
type?: string;
}): BaseEvent;