From 9f01bb519e9c391511385b59aee928fb2eac8692 Mon Sep 17 00:00:00 2001 From: Pomu Date: Wed, 10 Dec 2014 14:45:04 +0900 Subject: [PATCH] fix argument type: Cookie -> Cookie[] callback function for chrome.cookies.getAll() should take Cookie[] https://developer.chrome.com/extensions/cookies#method-getAll --- chrome/chrome.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/chrome.d.ts b/chrome/chrome.d.ts index d590eb3a96..ede0dfa401 100755 --- a/chrome/chrome.d.ts +++ b/chrome/chrome.d.ts @@ -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;