Comparing version 3.3.7 to 3.3.8
@@ -41,3 +41,3 @@ export type SupportedTypes = Array<string | { [index: string]: any } | number | null>; | ||
export type PluginDefinition<T = any> = { | ||
export type PluginDefinition<T> = { | ||
[index: string]: (a: T, b: T) => boolean | number; | ||
@@ -52,7 +52,7 @@ } | ||
<T extends SupportedTypes>(query: RegExp, target: T, rawSelector?: any): T; | ||
<T = any>(query: SiftQuery<any>, rawSelector: (item: T) => boolean): Exec; | ||
<T extends SupportedTypes = any[]>(query: SiftQuery<T>): FilterFn; | ||
<T>(query: SiftQuery<any>, rawSelector: (item: T) => boolean): Exec; | ||
<T extends SupportedTypes[]>(query: SiftQuery<T>): FilterFn; | ||
<T extends SupportedTypes>(query: SiftQuery<T>, target: T, rawSelector?: any): T; | ||
indexOf<T extends SupportedTypes>(query: SiftQuery<T>, target: T, rawSelector?: any): number; | ||
use<K = any>(plugin: PluginFunction<K> | PluginDefinition<K>): void; | ||
use<K>(plugin: PluginFunction<K> | PluginDefinition<K>): void; | ||
compare<T, K>(a: T, b: K): 0 | -1 | 1; | ||
@@ -59,0 +59,0 @@ } |
{ | ||
"name": "sift", | ||
"description": "mongodb query style array filtering", | ||
"version": "3.3.7", | ||
"version": "3.3.8", | ||
"repository": "crcn/sift.js", | ||
@@ -6,0 +6,0 @@ "author": { |
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
147318