@leight/context
Advanced tools
Comparing version 0.5.27 to 0.5.29
import { type IStateCreatorProps, type IStoreApi, type IStoreProps, type StoreApi } from "@leight/zustand"; | ||
import { type FC, type ReactNode } from "react"; | ||
export type IContextRender<TContext> = (context: TContext) => ReactNode; | ||
export type IProviderChildren<TContext> = ReactNode | IContextRender<TContext>; | ||
export type IProviderChildren<TContext> = ReactNode | FC<TContext>; | ||
export type IStoreProviderProps<TStoreProps extends IStoreProps> = { | ||
@@ -6,0 +5,0 @@ children: IProviderChildren<IStoreApi<TStoreProps>>; |
{ | ||
"version": "0.5.27", | ||
"version": "0.5.29", | ||
"name": "@leight/context", | ||
@@ -28,13 +28,15 @@ "description": "Common context stuff.", | ||
"lint": "eslint src", | ||
"cleanup": "del-cli .turbo lib tsconfig.tsbuildinfo src/**/*.{d.ts,d.ts.map,js,js.map}" | ||
"cleanup": "concurrently npm:cleanup:*", | ||
"cleanup:sdk": "del-cli src/sdk/**", | ||
"cleanup:lib": "del-cli .turbo lib tsconfig.tsbuildinfo src/**/*.{d.ts,d.ts.map,js,js.map}" | ||
}, | ||
"dependencies": { | ||
"@leight/zustand": "^0.5.64", | ||
"@leight/zustand": "^0.5.66", | ||
"react": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@leight/esbuild": "^0.5.43", | ||
"@leight/eslint-config-eslint": "^0.5.52", | ||
"@leight/tsconfig": "^0.5.66", | ||
"@leight/turbowatch": "^0.5.31", | ||
"@leight/esbuild": "^0.5.45", | ||
"@leight/eslint-config-eslint": "^0.5.54", | ||
"@leight/tsconfig": "^0.5.68", | ||
"@leight/turbowatch": "^0.5.33", | ||
"@types/node": "^18.15.0", | ||
@@ -41,0 +43,0 @@ "@types/react": "^18.0.28", |
@@ -12,7 +12,5 @@ import { | ||
export type IContextRender<TContext> = (context: TContext) => ReactNode; | ||
export type IProviderChildren<TContext> = | ||
ReactNode | ||
| IContextRender<TContext>; | ||
| FC<TContext>; | ||
@@ -19,0 +17,0 @@ export type IStoreProviderProps<TStoreProps extends IStoreProps> = |
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
6143
73
Updated@leight/zustand@^0.5.66