You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Improve QueryMatcher TypeScript definition (#7555)
This commit is contained in:
committed by
GitHub
parent
42adedc468
commit
5c44cb5cc6
@@ -20,10 +20,11 @@ import { at, uniq } from 'lodash';
|
||||
import { removeHiddenChars } from "matrix-js-sdk/src/utils";
|
||||
|
||||
import { TimelineRenderingType } from '../contexts/RoomContext';
|
||||
import { Leaves } from "../@types/common";
|
||||
|
||||
interface IOptions<T extends {}> {
|
||||
keys: Array<string | keyof T>;
|
||||
funcs?: Array<(T) => string | string[]>;
|
||||
keys: Array<Leaves<T>>;
|
||||
funcs?: Array<(o: T) => string | string[]>;
|
||||
shouldMatchWordsOnly?: boolean;
|
||||
// whether to apply unhomoglyph and strip diacritics to fuzz up the search. Defaults to true
|
||||
fuzzy?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user