@types/fuzzaldrin
Advanced tools
Comparing version 2.1.4 to 2.1.5
@@ -7,5 +7,9 @@ // Type definitions for fuzzaldrin 2.1 | ||
export function filter(candidates: string[], query: string, options?: {maxResults?: number | undefined}): string[]; | ||
export function filter<T, K extends keyof T>(candidates: T[], query: string & T[K], options: {key: K, maxResults?: number | undefined}): T[]; | ||
export function filter(candidates: string[], query: string, options?: { maxResults?: number | undefined }): string[]; | ||
export function filter<T, K extends keyof T>( | ||
candidates: T[], | ||
query: string & T[K], | ||
options: { key: K; maxResults?: number | undefined }, | ||
): T[]; | ||
export function match(string: string, query: string): any; | ||
export function score(string: string, query: string): number; |
{ | ||
"name": "@types/fuzzaldrin", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "TypeScript definitions for fuzzaldrin", | ||
@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fuzzaldrin", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "7e9386a92b1c749039a0aa9e06d4ea887bd6d5cdf06c96ddfad727f407dc85e5", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "2758e7cf7d728a880e31b2c25426c074e58ccf6c4546269e98ba46c5add4cbb6", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -17,4 +17,8 @@ # Installation | ||
export function filter(candidates: string[], query: string, options?: {maxResults?: number | undefined}): string[]; | ||
export function filter<T, K extends keyof T>(candidates: T[], query: string & T[K], options: {key: K, maxResults?: number | undefined}): T[]; | ||
export function filter(candidates: string[], query: string, options?: { maxResults?: number | undefined }): string[]; | ||
export function filter<T, K extends keyof T>( | ||
candidates: T[], | ||
query: string & T[K], | ||
options: { key: K; maxResults?: number | undefined }, | ||
): T[]; | ||
export function match(string: string, query: string): any; | ||
@@ -26,3 +30,3 @@ export function score(string: string, query: string): number; | ||
### Additional Details | ||
* Last updated: Thu, 08 Jul 2021 12:01:56 GMT | ||
* Last updated: Thu, 14 Sep 2023 15:26:41 GMT | ||
* Dependencies: none | ||
@@ -29,0 +33,0 @@ * Global values: none |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3847
13
35
0