Skip to content

Commit

Permalink
update typescript typings for scoreFn
Browse files Browse the repository at this point in the history
  • Loading branch information
farzher committed May 15, 2024
1 parent c04ce48 commit c061502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ declare namespace Fuzzysort {
}
interface KeysOptions<T> extends Options {
keys: ReadonlyArray<string | ((obj: T) => string) | ReadonlyArray<string>>
scoreFn?: (keysResult:ReadonlyArray<KeyResult<T>>) => number
scoreFn?: (keysResult: KeysResult<T>) => number
}

interface HighlightCallback<T> { (match: string, index: number): T }
Expand Down

0 comments on commit c061502

Please sign in to comment.