Skip to content

Commit

Permalink
chore: [capricorn86#1181] Removes the classes LocalStorage and Sessio…
Browse files Browse the repository at this point in the history
…nStorage as Storage is the correct class to use
  • Loading branch information
capricorn86 committed Mar 21, 2024
1 parent df8e2e8 commit 64013c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/happy-dom/src/event/events/IStorageEventInit.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import IEventInit from '../IEventInit.js';
import { Storage } from '../../storage/Storage.js';
import Storage from '../../storage/Storage.js';

export default interface IStorageEventInit extends IEventInit {
key?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/happy-dom/src/event/events/StorageEvent.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Event from '../Event.js';
import IStorageEventInit from './IStorageEventInit.js';
import { Storage } from '../../storage/Storage.js';
import Storage from '../../storage/Storage.js';

/**
*
Expand Down
6 changes: 2 additions & 4 deletions packages/happy-dom/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ import Range from './range/Range.js';
import ResizeObserver from './resize-observer/ResizeObserver.js';
import Screen from './screen/Screen.js';
import Selection from './selection/Selection.js';
import { Storage, LocalStorage, SessionStorage } from './storage/Storage.js';
import Storage from './storage/Storage.js';
import NodeFilter from './tree-walker/NodeFilter.js';
import NodeIterator from './tree-walker/NodeIterator.js';
import TreeWalker from './tree-walker/TreeWalker.js';
Expand Down Expand Up @@ -350,7 +350,5 @@ export {
Window,
XMLDocument,
XMLParser,
XMLSerializer,
LocalStorage,
SessionStorage
XMLSerializer
};

0 comments on commit 64013c7

Please sign in to comment.