Skip to content

Commit

Permalink
RF
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanmcdonald committed May 6, 2024
1 parent 815b6a4 commit 4e704db
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -177,7 +175,7 @@ export const storageProxyHandler: ProxyHandler<Storage> = {
},
};

export type ProxiedStorage = Storage & Record<any, unknown>;
export type ProxiedStorage = Storage & Record<any, any>;

export const createStorage = () => {
return new Proxy(new Storage(), storageProxyHandler) as ProxiedStorage; // eslint-disable-line no-undef
Expand Down

0 comments on commit 4e704db

Please sign in to comment.