@gez/class-state
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -80,2 +80,2 @@ import { type State, type StateContext } from './create'; | ||
*/ | ||
export declare function foreignStore<T extends StoreConstructor>(Store: T, name: string, cacheKey?: string): InstanceType<T>; | ||
export declare function foreignStore<T extends StoreConstructor>(Store: T, name: string, cacheKey?: string): InstanceType<T> | null; |
@@ -16,3 +16,3 @@ { | ||
"devDependencies": { | ||
"@gez/lint": "0.0.12", | ||
"@gez/lint": "0.0.13", | ||
"@types/node": "20.12.12", | ||
@@ -28,3 +28,3 @@ "@vitest/coverage-v8": "1.6.0", | ||
}, | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"type": "module", | ||
@@ -47,3 +47,3 @@ "private": false, | ||
], | ||
"gitHead": "ee7626290d17f5085c2d0d032a895ba55ee292a6" | ||
"gitHead": "63213505157e59a21b42f9c14a54fcc1288858eb" | ||
} |
@@ -278,3 +278,3 @@ /* eslint-disable @typescript-eslint/no-this-alias */ | ||
cacheKey?: string | ||
): InstanceType<T> { | ||
): InstanceType<T> | null { | ||
if (!currentStateContext) { | ||
@@ -289,3 +289,3 @@ throw new Error('No state context found'); | ||
} | ||
return new Store(cacheKey); | ||
return null; | ||
} | ||
@@ -292,0 +292,0 @@ |
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
81739