blissfuljs: Don't rely on global definitions of AriaRequestEvent and CommandEvent (#15997)

This commit is contained in:
Andy
2017-04-19 12:45:52 -07:00
committed by GitHub
parent 29afba8cf7
commit 71acb3b8e3

View File

@@ -251,6 +251,16 @@ declare namespace BlissNS {
(expr: Node, context?: Element): [Node];
}
interface AriaRequestEvent extends Event {
readonly attributeName: string;
attributeValue: string | null;
}
interface CommandEvent extends Event {
readonly commandName: string;
readonly detail: string | null;
}
// Native methods added into "_" property, but methods that return "void" now return thi stype in order to be chainables
// Methods are All HTMLElement a ELement methods
interface BlissNativeExtentions<T> {