add firefox extension template
This commit is contained in:
17
externs/webextension_polyfill/events/Event.hx
Normal file
17
externs/webextension_polyfill/events/Event.hx
Normal file
@@ -0,0 +1,17 @@
|
||||
package webextension_polyfill.events;
|
||||
|
||||
/**
|
||||
An object which allows the addition and removal of listeners for a Chrome event.
|
||||
**/
|
||||
typedef Event<T> = {
|
||||
/**
|
||||
Registers an event listener <em>callback</em> to an event.
|
||||
**/
|
||||
function addListener(callback:T, params:haxe.extern.Rest<Dynamic>):Void;
|
||||
/**
|
||||
Deregisters an event listener <em>callback</em> from an event.
|
||||
**/
|
||||
function removeListener(callback:T):Void;
|
||||
function hasListener(callback:T):Bool;
|
||||
function hasListeners():Bool;
|
||||
};
|
Reference in New Issue
Block a user