Skip to content

Commit

Permalink
Minor changes/fixes in TypeScript declaration:
Browse files Browse the repository at this point in the history
changes in factory signature;
export of ChromeNamespace, BrowserNamespace types
  • Loading branch information
hindmost committed Apr 9, 2021
1 parent abee2b4 commit f680d7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reduxed-chrome-storage",
"version": "2.0.0",
"version": "2.0.5",
"description": "Redux interface to chrome.storage. Unified way to use Redux in all modern browser extensions. The only way to get Redux working in Manifest V3 Chrome extensions",
"license": "MIT",
"author": "Savr Goryaev",
Expand Down
10 changes: 7 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import WrappedBrowserStorage from './WrappedBrowserStorage';
import { StoreCreator, StoreEnhancer, Reducer } from 'redux';
import { ExtendedStore } from './types/store';
import {
ChromeNamespace, BrowserNamespace, StorageAreaName
ChromeNamespace, BrowserNamespace
} from './types/apis';

enum Namespace {
Expand All @@ -14,6 +14,10 @@ enum Namespace {
declare const chrome: ChromeNamespace;
declare const browser: BrowserNamespace;

export {
ChromeNamespace, BrowserNamespace
} from './types/apis';

/**
* ReduxedChromeStorage creator factory.
* Returns an async store creator that's supposed to replace
Expand Down Expand Up @@ -49,10 +53,10 @@ export default function reduxedStorageCreatorFactory({
storageArea, storageKey, bufferLife
}: {
createStore: StoreCreator,
namespace?: Namespace,
namespace?: string,
chromeNs?: ChromeNamespace,
browserNs?: BrowserNamespace,
storageArea?: StorageAreaName,
storageArea?: string,
storageKey?: string,
bufferLife?: number
}) {
Expand Down

0 comments on commit f680d7a

Please sign in to comment.