@furystack/core
Advanced tools
Comparing version 5.1.3 to 6.0.0
@@ -56,3 +56,3 @@ "use strict"; | ||
if (filter.top || filter.skip) { | ||
value = value.slice(filter.skip, (filter.skip || 0) + (filter.top || 0)); | ||
value = value.slice(filter.skip, (filter.skip || 0) + (filter.top || this.cache.size)); | ||
} | ||
@@ -59,0 +59,0 @@ if (filter.select) { |
@@ -19,3 +19,3 @@ import { Constructable, Injector } from '@furystack/inject'; | ||
*/ | ||
getStoreFor<T>(model: Constructable<T>): PhysicalStore<T>; | ||
getStoreFor<T, TType extends PhysicalStore<T> = PhysicalStore<T>>(model: Constructable<T>): TType; | ||
/** | ||
@@ -22,0 +22,0 @@ * Adds a store instance to the StoreManager class |
{ | ||
"name": "@furystack/core", | ||
"version": "5.1.3", | ||
"version": "6.0.0", | ||
"description": "Core FuryStack package", | ||
@@ -59,3 +59,3 @@ "main": "dist/index.js", | ||
"typings": "./dist/index.d.ts", | ||
"gitHead": "c864ccc3b136bf08f75c00c86ea5aa2942c9bde6" | ||
"gitHead": "ed7937b9607e4c296683ffea8afb27a09243f839" | ||
} |
@@ -52,3 +52,3 @@ import { Constructable } from '@furystack/inject' | ||
if (filter.top || filter.skip) { | ||
value = value.slice(filter.skip, (filter.skip || 0) + (filter.top || 0)) | ||
value = value.slice(filter.skip, (filter.skip || 0) + (filter.top || this.cache.size)) | ||
} | ||
@@ -55,0 +55,0 @@ |
@@ -31,3 +31,3 @@ import { Constructable, Injectable, Injector } from '@furystack/inject' | ||
*/ | ||
public getStoreFor<T>(model: Constructable<T>) { | ||
public getStoreFor<T, TType extends PhysicalStore<T> = PhysicalStore<T>>(model: Constructable<T>) { | ||
const instance = this.stores.get(model) | ||
@@ -42,3 +42,3 @@ if (!instance) { | ||
} | ||
return instance as PhysicalStore<T> | ||
return instance as TType | ||
} | ||
@@ -45,0 +45,0 @@ |
Sorry, the diff of this file is not supported yet
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
74301