mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-14 09:02:40 +08:00
Merge pull request #21460 from munkacsimark/chrome-storage-area-remove-fix
chrome: StorageArea.remove fixed
This commit is contained in:
13
types/chrome/index.d.ts
vendored
13
types/chrome/index.d.ts
vendored
@@ -5547,19 +5547,12 @@ declare namespace chrome.storage {
|
||||
*/
|
||||
set(items: Object, callback?: () => void): void;
|
||||
/**
|
||||
* Removes one item from storage.
|
||||
* @param key A single key for items to remove.
|
||||
* Removes one or more items from storage.
|
||||
* @param A single key or a list of keys for items to remove.
|
||||
* @param callback Optional.
|
||||
* Callback on success, or on failure (in which case runtime.lastError will be set).
|
||||
*/
|
||||
remove(key: string, callback?: () => void): void;
|
||||
/**
|
||||
* Removes items from storage.
|
||||
* @param keys A list of keys for items to remove.
|
||||
* @param callback Optional.
|
||||
* Callback on success, or on failure (in which case runtime.lastError will be set).
|
||||
*/
|
||||
remove(keys: string[], callback?: () => void): void;
|
||||
remove(keys: string | string[], callback?: () => void): void;
|
||||
/**
|
||||
* Gets one or more items from storage.
|
||||
* @param callback Callback with storage items, or on failure (in which case runtime.lastError will be set).
|
||||
|
||||
Reference in New Issue
Block a user