-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from keithamus/update-invokers-using-command-n…
…omenclature-semantics update invokers using command nomenclature & semantics
- Loading branch information
Showing
3 changed files
with
176 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
interface InvokerMixin { | ||
invokeTargetElement: HTMLElement | null; | ||
invokeAction: string; | ||
commandForElement: HTMLElement | null; | ||
command: string; | ||
} | ||
|
||
declare global { | ||
interface InvokeEvent extends Event { | ||
interface CommandEvent extends Event { | ||
invoker: Element; | ||
action: string; | ||
command: string; | ||
} | ||
/* eslint-disable @typescript-eslint/no-empty-interface */ | ||
interface HTMLButtonElement extends InvokerMixin {} | ||
interface HTMLInputElement extends InvokerMixin {} | ||
/* eslint-enable @typescript-eslint/no-empty-interface */ | ||
interface Window { | ||
InvokeEvent: InvokeEvent; | ||
CommandEvent: CommandEvent; | ||
} | ||
} |
Oops, something went wrong.