add missing externs to repo

This commit is contained in:
2024-10-13 17:40:46 -05:00
parent b211bc0c4b
commit 2b6830784c
554 changed files with 13165 additions and 1 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>;
};

View File

@@ -0,0 +1,17 @@
package webextension_polyfill.theme;
/**
Info provided in the onUpdated listener.
**/
typedef ThemeUpdateInfo = {
/**
The new theme after update
**/
var theme : ThemeUpdateInfoThemeType;
/**
The id of the window the theme has been applied to
Optional.
**/
@:optional
var windowId : Float;
};

View File

@@ -0,0 +1,6 @@
package webextension_polyfill.theme;
/**
The new theme after update
**/
typedef ThemeUpdateInfoThemeType = { };