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,23 @@
package webextension_polyfill.theme;
typedef Static = {
/**
Returns the current theme for the specified window or the last focused window.
**/
function getCurrent(?windowId:Float):js.lib.Promise<Dynamic>;
/**
Make complete updates to the theme. Resolves when the update has completed.
Make complete updates to the theme. Resolves when the update has completed.
**/
@:overload(function(details:webextension_polyfill.manifest.ThemeType):js.lib.Promise<ts.Undefined> { })
function update(windowId:Null<Float>, details:webextension_polyfill.manifest.ThemeType):js.lib.Promise<ts.Undefined>;
/**
Removes the updates made to the theme.
**/
function reset(?windowId:Float):js.lib.Promise<ts.Undefined>;
/**
Fired when a new theme has been applied
**/
var onUpdated : webextension_polyfill.events.Event<(updateInfo:ThemeUpdateInfo) -> Void>;
};