@textcomplete/core
Advanced tools
Comparing version 0.1.4 to 0.1.5
import { SearchResult } from "./SearchResult"; | ||
export declare type SearchCallback<T> = (results: T[]) => void; | ||
declare type ReplaceResult = [string, string] | string | null; | ||
export interface StrategyProps<T = unknown> { | ||
export interface StrategyProps<T = any> { | ||
match: RegExp | ((regexp: string | RegExp) => RegExpMatchArray | null); | ||
@@ -6,0 +6,0 @@ search: (term: string, callback: SearchCallback<T>, match: RegExpMatchArray) => void; |
{ | ||
"name": "@textcomplete/core", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Textcomplete core.", | ||
@@ -40,3 +40,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "0bc47e69d7849c5aaa08be551ec73c0f3b2e5508" | ||
"gitHead": "81c7b759d938d484e4176e5a001c68d9168d09e5" | ||
} |
@@ -6,3 +6,4 @@ import { SearchResult } from "./SearchResult" | ||
export interface StrategyProps<T = unknown> { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
export interface StrategyProps<T = any> { | ||
match: RegExp | ((regexp: string | RegExp) => RegExpMatchArray | null) | ||
@@ -9,0 +10,0 @@ search: ( |
Sorry, the diff of this file is not supported yet
83733
1844