redux-zero
Advanced tools
Comparing version 4.4.1 to 4.4.2
# Changelog | ||
### 4.4.2 | ||
- Fix typings, remove unsubscribe from Store interface since isn't used | ||
[info] Using redux-zero along with TypeScript gives an error when implementing: | ||
`<Provider store={store}><Whatever/></Provider>` due to the actual store object | ||
and the expected attribute differ. | ||
- Added Store interface as signature for createStore function. | ||
### 4.4.1 | ||
@@ -4,0 +14,0 @@ |
export default interface Store { | ||
setState: Function; | ||
subscribe: Function; | ||
unsubscribe: Function; | ||
getState: Function; | ||
} |
{ | ||
"name": "redux-zero", | ||
"version": "4.4.1", | ||
"version": "4.4.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/redux-zero.js", |
@@ -18,10 +18,13 @@ <h1 align="center"> | ||
- Single store | ||
- No reducers | ||
- Less boilerplate | ||
- No PropTypes | ||
- Smaller and simpler than [redux](https://github.com/reactjs/redux) | ||
- Written in TypeScript | ||
## Table of Contents | ||
- [Installation](#installation) | ||
- [How](#how) | ||
- [Example](#example) | ||
- [Inspiration](#inspiration) | ||
- [Roadmap](#roadmap) | ||
- [Tools](#tools) | ||
- [Docs](#docs) | ||
## Installation | ||
@@ -137,2 +140,3 @@ | ||
- [React](https://github.com/concretesolutions/redux-zero/tree/master/examples/react/counter) | ||
- [Preact](https://github.com/concretesolutions/redux-zero/tree/master/examples/preact/counter) | ||
- [React Native](https://github.com/concretesolutions/redux-zero/tree/master/examples/react-native/counter) | ||
@@ -139,0 +143,0 @@ - [Svelte](https://github.com/concretesolutions/redux-zero/tree/master/examples/svelte/counter) |
@@ -1,5 +0,2 @@ | ||
export default function createStore(state?: {}): { | ||
setState(update: any): void; | ||
subscribe(f: any): () => void; | ||
getState(): {}; | ||
}; | ||
import Store from "../interfaces/Store"; | ||
export default function createStore(state?: {}): Store; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63829
160
578