vue-hooks-env
Version:
TypeScript and TSX Env for Vue Composition Api
93 lines (92 loc) • 3.07 kB
TypeScript
import { CSSProperties, EventHandlers, Events, ReservedProps } from './jsx';
export interface NativeEvents {
nativeOnCopy: ClipboardEvent;
nativeOnCut: ClipboardEvent;
nativeOnPaste: ClipboardEvent;
nativeOnCompositionend: CompositionEvent;
nativeOnCompositionstart: CompositionEvent;
nativeOnCompositionupdate: CompositionEvent;
nativeOnDrag: DragEvent;
nativeOnDragend: DragEvent;
nativeOnDragenter: DragEvent;
nativeOnDragexit: DragEvent;
nativeOnDragleave: DragEvent;
nativeOnDragover: DragEvent;
nativeOnDragstart: DragEvent;
nativeOnDrop: DragEvent;
nativeOnFocus: FocusEvent;
nativeOnBlur: FocusEvent;
nativeOnChange: Event;
nativeOnBeforeinput: Event;
nativeOnInput: Event;
nativeOnReset: Event;
nativeOnSubmit: Event;
nativeOnInvalid: Event;
nativeOnLoad: Event;
nativeOnError: Event;
nativeOnKeydown: KeyboardEvent;
nativeOnKeypress: KeyboardEvent;
nativeOnKeyup: KeyboardEvent;
nativeOnAuxclick: MouseEvent;
nativeOnClick: MouseEvent;
nativeOnContextmenu: MouseEvent;
nativeOnDblclick: MouseEvent;
nativeOnMousedown: MouseEvent;
nativeOnMouseenter: MouseEvent;
nativeOnMouseleave: MouseEvent;
nativeOnMousemove: MouseEvent;
nativeOnMouseout: MouseEvent;
nativeOnMouseover: MouseEvent;
nativeOnMouseup: MouseEvent;
nativeOnAbort: Event;
nativeOnCanplay: Event;
nativeOnCanplaythrough: Event;
nativeOnDurationchange: Event;
nativeOnEmptied: Event;
nativeOnEncrypted: Event;
nativeOnEnded: Event;
nativeOnLoadeddata: Event;
nativeOnLoadedmetadata: Event;
nativeOnLoadstart: Event;
nativeOnPause: Event;
nativeOnPlay: Event;
nativeOnPlaying: Event;
nativeOnProgress: Event;
nativeOnRatechange: Event;
nativeOnSeeked: Event;
nativeOnSeeking: Event;
nativeOnStalled: Event;
nativeOnSuspend: Event;
nativeOnTimeupdate: Event;
nativeOnVolumechange: Event;
nativeOnWaiting: Event;
nativeOnSelect: Event;
nativeOnScroll: UIEvent;
nativeOnTouchcancel: TouchEvent;
nativeOnTouchend: TouchEvent;
nativeOnTouchmove: TouchEvent;
nativeOnTouchstart: TouchEvent;
nativeOnPointerdown: PointerEvent;
nativeOnPointermove: PointerEvent;
nativeOnPointerup: PointerEvent;
nativeOnPointercancel: PointerEvent;
nativeOnPointerenter: PointerEvent;
nativeOnPointerleave: PointerEvent;
nativeOnPointerover: PointerEvent;
nativeOnPointerout: PointerEvent;
nativeOnWheel: WheelEvent;
nativeOnAnimationstart: AnimationEvent;
nativeOnAnimationend: AnimationEvent;
nativeOnAnimationiteration: AnimationEvent;
nativeOnTransitionend: TransitionEvent;
nativeOnTransitionstart: TransitionEvent;
}
export declare type DomEvent = EventHandlers<Events>;
export interface ClassAttributes<A, E, S> extends ReservedProps<A, E> {
nativeOn?: {
[key: string]: Function | Function[];
};
style?: string | CSSProperties;
class?: any;
scopedSlots?: Partial<S>;
}