Skip to content

Commit

Permalink
fix: use IStore interface instead of Storage
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Feb 15, 2020
1 parent 1c6301b commit ff82480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume-localstorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class ObjectStore {
}
}

export function createVolume(namespace: string, LS: Storage | object = localStorage): new (...args) => Volume {
export function createVolume(namespace: string, LS: IStore | object = localStorage): new (...args) => Volume {
const store = new ObjectStore(LS);
const key = (type, id) => `memfs.${namespace}.${type}.${id}`;

Expand Down

0 comments on commit ff82480

Please sign in to comment.