@leight/context
Advanced tools
Comparing version 0.5.26 to 0.5.27
@@ -1,2 +0,2 @@ | ||
import { type IStateCreatorProps, type IStoreApi, type IStoreProps } from "@leight/zustand"; | ||
import { type IStateCreatorProps, type IStoreApi, type IStoreProps, type StoreApi } from "@leight/zustand"; | ||
import { type FC, type ReactNode } from "react"; | ||
@@ -20,2 +20,13 @@ export type IContextRender<TContext> = (context: TContext) => ReactNode; | ||
} | ||
/** | ||
* Typed set of generated components used for working with Store; Provider, states and the others otherwise | ||
* boilerplate code. | ||
*/ | ||
export interface IStoreContext<TStoreProps extends IStoreProps> { | ||
readonly Provider: IStoreProvider<TStoreProps>; | ||
readonly useState: IUseState<TStoreProps>; | ||
readonly useOptionalState: IUseOptionalState<TStoreProps>; | ||
readonly useStore: () => StoreApi<TStoreProps["StoreProps"]>; | ||
readonly useOptionalStore: () => StoreApi<TStoreProps["StoreProps"]> | null; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"version": "0.5.26", | ||
"version": "0.5.27", | ||
"name": "@leight/context", | ||
@@ -31,10 +31,10 @@ "description": "Common context stuff.", | ||
"dependencies": { | ||
"@leight/zustand": "^0.5.63", | ||
"@leight/zustand": "^0.5.64", | ||
"react": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@leight/esbuild": "^0.5.42", | ||
"@leight/eslint-config-eslint": "^0.5.51", | ||
"@leight/tsconfig": "^0.5.65", | ||
"@leight/turbowatch": "^0.5.30", | ||
"@leight/esbuild": "^0.5.43", | ||
"@leight/eslint-config-eslint": "^0.5.52", | ||
"@leight/tsconfig": "^0.5.66", | ||
"@leight/turbowatch": "^0.5.31", | ||
"@types/node": "^18.15.0", | ||
@@ -41,0 +41,0 @@ "@types/react": "^18.0.28", |
import { | ||
type IStateCreatorProps, | ||
type IStoreApi, | ||
type IStoreProps | ||
type IStoreProps, | ||
type StoreApi | ||
} from "@leight/zustand"; | ||
@@ -39,1 +40,13 @@ import { | ||
} | ||
/** | ||
* Typed set of generated components used for working with Store; Provider, states and the others otherwise | ||
* boilerplate code. | ||
*/ | ||
export interface IStoreContext<TStoreProps extends IStoreProps> { | ||
readonly Provider: IStoreProvider<TStoreProps>; | ||
readonly useState: IUseState<TStoreProps>; | ||
readonly useOptionalState: IUseOptionalState<TStoreProps>; | ||
readonly useStore: () => StoreApi<TStoreProps["StoreProps"]>; | ||
readonly useOptionalStore: () => StoreApi<TStoreProps["StoreProps"]> | null; | ||
} |
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
6287
75
Updated@leight/zustand@^0.5.64