add firefox extension template

This commit is contained in:
2025-08-07 16:03:16 -05:00
parent 6cbb29fed1
commit 5df289ffcb
586 changed files with 13636 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package webextension_polyfill.networkstatus;
typedef NetworkLinkInfo = {
/**
Status of the network link, if "unknown" then link is usually assumed to be "up"
**/
var status : NetworkLinkInfoStatusEnum;
/**
If known, the type of network connection that is avialable.
**/
var type : NetworkLinkInfoTypeEnum;
/**
If known, the network id or name.
Optional.
**/
@:optional
var id : String;
};

View File

@@ -0,0 +1,6 @@
package webextension_polyfill.networkstatus;
/**
Status of the network link, if "unknown" then link is usually assumed to be "up"
**/
typedef NetworkLinkInfoStatusEnum = String;

View File

@@ -0,0 +1,6 @@
package webextension_polyfill.networkstatus;
/**
If known, the type of network connection that is avialable.
**/
typedef NetworkLinkInfoTypeEnum = String;

View File

@@ -0,0 +1,12 @@
package webextension_polyfill.networkstatus;
typedef Static = {
/**
Returns the $(ref:NetworkLinkInfo} of the current network connection.
**/
function getLinkInfo():Void;
/**
Fired when the network connection state changes.
**/
var onConnectionChanged : webextension_polyfill.events.Event<(details:NetworkLinkInfo) -> Void>;
};