@thoughtbot/trix-mentions-element
Version:
Activates a suggestion menu to embed attachments as you type.
12 lines (11 loc) • 351 B
TypeScript
declare type Query = {
text: string;
position: number;
};
declare type QueryOptions = {
lookBackIndex: number;
multiWord: boolean;
lastMatchPosition: number | null;
};
export default function query(text: string, key: string, cursor: number, { multiWord, lookBackIndex, lastMatchPosition }?: QueryOptions): Query | void;
export {};