minisearch
Advanced tools
Comparing version 2.6.1 to 2.6.2
@@ -5,10 +5,14 @@ # Changelog | ||
# v2.6.2 | ||
- [fix] Improve TypeScript types: default generic document type is `any`, not `object` | ||
# v2.6.1 | ||
- Better TypeScript typings using generics, letting the user (optionally) | ||
specify the document type. | ||
- No change from 2.6.0 | ||
# v2.6.0 | ||
- UNPUBLISHED due to publishing error | ||
- Better TypeScript typings using generics, letting the user (optionally) | ||
specify the document type. | ||
@@ -15,0 +19,0 @@ # v2.5.1 |
{ | ||
"name": "minisearch", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "Tiny but powerful full-text search engine for browser and Node", | ||
@@ -5,0 +5,0 @@ "main": "dist/umd/index.js", |
// Type definitions for MiniSearch | ||
declare class MiniSearch<T = object> { | ||
declare class MiniSearch<T = any> { | ||
constructor(options: Options<T>); | ||
@@ -26,6 +26,6 @@ | ||
static loadJSON<T = object>(json: string, options: Options<T>): MiniSearch<T>; | ||
static loadJSON<T = any>(json: string, options: Options<T>): MiniSearch<T>; | ||
} | ||
export declare interface SearchOptions<T = object> { | ||
export declare interface SearchOptions<T = any> { | ||
fields?: string[], | ||
@@ -52,3 +52,3 @@ | ||
export declare interface Options<T = object> { | ||
export declare interface Options<T = any> { | ||
fields: string[], | ||
@@ -55,0 +55,0 @@ |
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
283970