From dfe528198d363ebc883da84dc816bce112ecd24b Mon Sep 17 00:00:00 2001
From: crowlKats <13135287+crowlKats@users.noreply.github.com>
Date: Mon, 10 May 2021 12:02:47 +0200
Subject: feat: add WebStorage API (#7819)
This commit introduces localStorage and sessionStorage.
---
cli/dts/lib.deno.window.d.ts | 5 +++++
1 file changed, 5 insertions(+)
(limited to 'cli/dts')
diff --git a/cli/dts/lib.deno.window.d.ts b/cli/dts/lib.deno.window.d.ts
index b7eca1e24..3c985e641 100644
--- a/cli/dts/lib.deno.window.d.ts
+++ b/cli/dts/lib.deno.window.d.ts
@@ -4,6 +4,7 @@
///
///
///
+///
///
declare class Window extends EventTarget {
@@ -22,12 +23,16 @@ declare class Window extends EventTarget {
navigator: Navigator;
Location: typeof Location;
location: Location;
+ localStorage: Storage;
+ sessionStorage: Storage;
}
declare var window: Window & typeof globalThis;
declare var self: Window & typeof globalThis;
declare var onload: ((this: Window, ev: Event) => any) | null;
declare var onunload: ((this: Window, ev: Event) => any) | null;
+declare var localStorage: Storage;
+declare var sessionStorage: Storage;
declare class Navigator {
constructor();
--
cgit v1.2.3