@@ -15,11 +15,11 @@ declare module "flexsearch" {
1515 /************************************/
1616 /* Utils */
1717 /************************************/
18- type Id = number | string ;
19- type Limit = number ;
20- type ExportHandler = ( key : string , data : string ) => void ;
21- type ExportHandlerAsync = ( key : string , data : string ) => Promise < void > ;
22- type AsyncCallback < T > = ( result ?: T ) => void ;
18+ export type Id = number | string ;
19+ export type Limit = number ;
20+ export type ExportHandler = ( key : string , data : string ) => void ;
21+ export type ExportHandlerAsync = ( key : string , data : string ) => Promise < void > ;
22+ export type AsyncCallback < T > = ( result ?: T ) => void ;
2323
2424 /************************************/
2525 /* Common Options */
@@ -29,7 +29,7 @@ declare module "flexsearch" {
2929 * **Document:**
3030 * * Presets: https://github.com/nextapps-de/flexsearch#presets
3131 */
32- type Preset =
32+ export type Preset =
3333 | "memory"
3434 | "performance"
3535 | "match"
@@ -40,7 +40,7 @@ declare module "flexsearch" {
4040 * Tokenizer: https://github.com/nextapps-de/flexsearch#tokenizer-prefix-search \
4141 * Custom Tokenizer: https://github.com/nextapps-de/flexsearch#add-custom-tokenizer
4242 */
43- type Tokenizer =
43+ export type Tokenizer =
4444 | "strict" | "exact" | "default"
4545 | "tolerant"
4646 | "forward"
@@ -50,7 +50,7 @@ declare module "flexsearch" {
5050 /**
5151 * Encoders: https://github.com/nextapps-de/flexsearch#encoders
5252 */
53- type Encoders =
53+ export type Encoders =
5454 | "Exact"
5555 | "Default"
5656 | "Normalize"
@@ -73,7 +73,7 @@ declare module "flexsearch" {
7373 * * Contextual search: https://github.com/nextapps-de/flexsearch#contextual
7474 */
7575
76- type ContextOptions = {
76+ export type ContextOptions = {
7777 resolution : number ;
7878 depth : number ;
7979 bidirectional : boolean ;
@@ -94,7 +94,7 @@ declare module "flexsearch" {
9494 resolve ?: R ;
9595 } ;
9696
97- type SerializedFunctionString = string ;
97+ export type SerializedFunctionString = string ;
9898
9999 /**
100100 * **Document:**
@@ -375,11 +375,11 @@ declare module "flexsearch" {
375375 /* Worker Index */
376376 /************************************/
377377
378- type WorkerURL = string ;
379- type WorkerPath = string ;
380- type WorkerConfigURL = string ;
381- type WorkerConfigPath = string ;
382- type WorkerType = boolean | WorkerURL | WorkerPath ;
378+ export type WorkerURL = string ;
379+ export type WorkerPath = string ;
380+ export type WorkerConfigURL = string ;
381+ export type WorkerConfigPath = string ;
382+ export type WorkerType = boolean | WorkerURL | WorkerPath ;
383383
384384 export type WorkerIndexOptions = IndexOptions & IndexWorkerConfig < true > & {
385385 //config?: WorkerConfigURL | WorkerConfigPath,
@@ -408,7 +408,7 @@ declare module "flexsearch" {
408408 /* Document Search */
409409 /************************************/
410410
411- type CustomFN < D = DocumentData > = ( doc : D ) => string | boolean ;
411+ export type CustomFN < D = DocumentData > = ( doc : D ) => string | boolean ;
412412
413413 /**
414414 * The template to be applied on matches (e.g. <code>"\<b>$1\</b>"</code>), where <code>\$1</code> is a placeholder for the matched partial
@@ -918,7 +918,7 @@ declare module "flexsearch" {
918918 ) : DocumentSearchResultsWrapper < D , W , S , H , P , R , E , M , true > ;
919919 }
920920
921- type IdType =
921+ export type IdType =
922922 "text" |
923923 "char" |
924924 "varchar" |
0 commit comments