mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Moved localStorage to Window
This commit is contained in:
parent
6ed136d427
commit
896e357ab7
14
types/chrome-apps/web-apis.d.ts
vendored
14
types/chrome-apps/web-apis.d.ts
vendored
@ -34,6 +34,13 @@ interface ChromeWindow {
|
||||
*/
|
||||
confirm(message?: string): boolean;
|
||||
|
||||
|
||||
/**
|
||||
* ❗ window.localStorage is not available in packaged apps. Use chrome.storage.local instead. ❗
|
||||
*/
|
||||
localStorage: typeof localStorage;
|
||||
|
||||
|
||||
/**
|
||||
* ❗ window.location is not available in packaged apps. ❗
|
||||
* Links open up with the system web browser.
|
||||
@ -126,10 +133,3 @@ interface Navigator {
|
||||
*/
|
||||
readonly geolocation: Geolocation;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ❗ window.localStorage is not available in packaged apps. Use chrome.storage.local instead. ❗
|
||||
*/
|
||||
declare var localStorage: typeof localStorage;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user