Skip to content

Commit

Permalink
Changed inferno onClick event target type non-nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Apr 13, 2024
1 parent cbbf12a commit 8da43c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/inferno/src/core/types.ts
Expand Up @@ -96,7 +96,9 @@ export interface ChangeEvent<T> extends SemiSyntheticEvent<T> {
}

export type InfernoKeyboardEvent<T> = SemiSyntheticEvent<T> & KeyboardEvent;
export type InfernoMouseEvent<T> = SemiSyntheticEvent<T> & MouseEvent;
export type InfernoMouseEvent<T> = SemiSyntheticEvent<T> & MouseEvent & {
target: EventTarget & T;
};
export type InfernoTouchEvent<T> = SemiSyntheticEvent<T> & TouchEvent;
export type InfernoPointerEvent<T> = SemiSyntheticEvent<T> & PointerEvent;
export type InfernoUIEvent<T> = SemiSyntheticEvent<T> & UIEvent;
Expand Down

0 comments on commit 8da43c9

Please sign in to comment.