Skip to content

Commit

Permalink
fix: add visibility event to types
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Mar 2, 2023
1 parent e2b9df1 commit 6476e9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions elements/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ export interface DOMAttributes<T extends EventTarget> {
// Message Events
'on:message'?: MessageEventHandler<T> | undefined | null;
'on:messageerror'?: MessageEventHandler<T> | undefined | null;

// Document Events
'on:visibilitychange'?: EventHandler<Event, T> | undefined | null;

// Global Events
'on:cancel'?: EventHandler<Event, T> | undefined | null;
Expand Down

0 comments on commit 6476e9b

Please sign in to comment.