react-native-global-state-hooks 15.0.0 → 15.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/createGlobalState.d.ts +2 -2
- package/index.d.ts +1 -1
- package/package.json +2 -2
package/createGlobalState.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StateHook, ActionCollectionConfig, ActionCollectionResult, GlobalStoreCallbacks } from "react-hooks-global-states/types";
|
|
2
2
|
import { AsyncStorageConfig, BaseMetadata, AsyncMetadata } from "./types";
|
|
3
3
|
import React from "react";
|
|
4
|
-
export type { InferActionsType } from "react-hooks-global-states/createGlobalState";
|
|
5
|
-
|
|
4
|
+
export type { InferActionsType, InferStateApi } from "react-hooks-global-states/createGlobalState";
|
|
5
|
+
interface CreateGlobalState {
|
|
6
6
|
/**
|
|
7
7
|
* Creates a global state hook.
|
|
8
8
|
* @param state initial state value
|
package/index.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export { isRecord } from "./isRecord";
|
|
|
10
10
|
export { type ContextProvider, type ContextHook, type InferContextApi, createContext } from "./createContext";
|
|
11
11
|
export type { AsyncStorageConfig } from "./types";
|
|
12
12
|
export { GlobalStore } from "./GlobalStore";
|
|
13
|
-
export {
|
|
13
|
+
export { createGlobalState, type InferActionsType, type InferStateApi } from "./createGlobalState";
|
|
14
14
|
export { default as asyncStorageWrapper, type AsyncStorageManager } from "./asyncStorageWrapper";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-global-state-hooks",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.1",
|
|
4
4
|
"description": "This is a package to easily handling global-state across your react-native-components No-redux... The library now includes @react-native-async-storage/async-storage to persist your state across sessions... if you want to keep using the old version without async-storage or react-native dependencies just use version 5.0.15 or user react-hooks-global-states instead",
|
|
5
5
|
"main": "./bundle.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -155,6 +155,6 @@
|
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
"dependencies": {
|
|
158
|
-
"react-hooks-global-states": "^15.0.
|
|
158
|
+
"react-hooks-global-states": "^15.0.3"
|
|
159
159
|
}
|
|
160
160
|
}
|