From 4e704db85ae91176b8db2536e30ffa2110243ea7 Mon Sep 17 00:00:00 2001 From: Lachlan McDonald Date: Mon, 6 May 2024 21:33:54 +0100 Subject: [PATCH] RF --- src/Storage.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Storage.ts b/src/Storage.ts index 433b1ea..59162b1 100644 --- a/src/Storage.ts +++ b/src/Storage.ts @@ -74,11 +74,9 @@ export class Storage { } /** - * Returns the name of the nᵗʰ key in the Storage object. + * Returns the name of the nth key in the Storage object. * - * __Implementation notes:__ * - The order of keys is varies by user-agent and should be not relied upon. - * - The handling of non-numeric keys is indeterminate. */ key(index: any) { if (arguments.length === 0) { @@ -177,7 +175,7 @@ export const storageProxyHandler: ProxyHandler = { }, }; -export type ProxiedStorage = Storage & Record; +export type ProxiedStorage = Storage & Record; export const createStorage = () => { return new Proxy(new Storage(), storageProxyHandler) as ProxiedStorage; // eslint-disable-line no-undef