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,30 @@
package webextension_polyfill.storage;
typedef LocalStorageArea = {
/**
The maximum amount (in bytes) of data that can be stored in local storage, as measured by the JSON stringification of
every value plus every key's length. This value will be ignored if the extension has the <code>unlimitedStorage</code>
permission. Updates that would cause this limit to be exceeded fail immediately and set $(ref:runtime.lastError).
**/
var QUOTA_BYTES : Int;
/**
Gets one or more items from storage.
**/
function get(?keys:ts.AnyOf3<String, Array<String>, haxe.DynamicAccess<Dynamic>>):js.lib.Promise<haxe.DynamicAccess<Dynamic>>;
/**
Sets multiple items.
**/
function set(items:haxe.DynamicAccess<Dynamic>):js.lib.Promise<ts.Undefined>;
/**
Removes one or more items from storage.
**/
function remove(keys:ts.AnyOf2<String, Array<String>>):js.lib.Promise<ts.Undefined>;
/**
Removes all items from storage.
**/
function clear():js.lib.Promise<ts.Undefined>;
/**
Fired when one or more items change.
**/
var onChanged : webextension_polyfill.events.Event<(changes:StorageAreaOnChangedChangesType) -> Void>;
};