Skip to content

Commit

Permalink
Add web-greeter/nody-greeter events to types
Browse files Browse the repository at this point in the history
  • Loading branch information
JezerM committed Mar 10, 2022
1 parent 81bfa93 commit e0189a8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ts/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -974,5 +974,17 @@ declare global {
greeter_config: GreeterConfig | undefined;
theme_utils: ThemeUtils | undefined;
_ready_event: Event | undefined;

addEventListener(
type: "NodyBroadcastEvent",
listener: (ev: NodyBroadcastEvent) => void,
options?: boolean | AddEventListenerOptions | undefined
): void;

addEventListener(
type: "GreeterReady",
listener: (ev: Event) => void,
options?: boolean | AddEventListenerOptions | undefined
): void;
}
}

0 comments on commit e0189a8

Please sign in to comment.