Skip to content

@phun-ky/moebius / MouseEventType

Type Alias: MouseEventType<T> ​

ts
type MouseEventType<T> = MouseEvent & {
  currentTarget: HTMLElement & {
    documentElement: HTMLElement;
  };
  offsetX?: number;
  offsetY?: number;
  target: T & {
    files?: FileList | null;
    id: string;
    parentElement: Element | null;
    value?: string | null;
  };
};

Defined in: types/index.ts:291

Represents the mouse event object for an element.

Type Parameters ​

T ​

T

Type of the element used as a target.

Type Declaration ​

currentTarget ​

ts
currentTarget: HTMLElement & {
  documentElement: HTMLElement;
};

Type Declaration ​

documentElement ​
ts
documentElement: HTMLElement;

offsetX? ​

ts
offsetX?: number;

offsetY? ​

ts
offsetY?: number;

target ​

ts
target: T & {
  files?:   | FileList
     | null;
  id: string;
  parentElement: Element | null;
  value?: string | null;
};

Type Declaration ​

files? ​
ts
files?:
  | FileList
  | null;
id ​
ts
id: string;
parentElement ​
ts
parentElement: Element | null;
value? ​
ts
value?: string | null;