mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
fix argument type: Cookie -> Cookie[]
callback function for chrome.cookies.getAll() should take Cookie[] https://developer.chrome.com/extensions/cookies#method-getAll
This commit is contained in:
Vendored
+1
-1
@@ -397,7 +397,7 @@ declare module chrome.cookies {
|
||||
}
|
||||
|
||||
export function getAllCookieStores(callback: (cookieStores: CookieStore[]) => void): void;
|
||||
export function getAll(details: GetAllDetails, callback: (cookies: Cookie) => void): void;
|
||||
export function getAll(details: GetAllDetails, callback: (cookies: Cookie[]) => void): void;
|
||||
export function set(details: SetDetails, callback?: (cookie?: Cookie) => void): void;
|
||||
export function remove(details: Details, callback?: (details: Details) => void): void;
|
||||
export function get(details: Details, callback: (cookie?: Cookie) => void): void;
|
||||
|
||||
Reference in New Issue
Block a user