react-markdown-editor-lite
Version:
a light-weight Markdown editor based on React
16 lines (15 loc) • 640 B
TypeScript
import { KeyboardEventCondition } from '../share/var';
export declare function deepClone(obj: any): any;
export declare function isEmpty(obj: any): boolean;
export declare function isPromise(obj: any): obj is Promise<any>;
export declare function repeat(str: string, num: number): string;
export declare function isKeyMatch(event: React.KeyboardEvent<HTMLDivElement>, cond: KeyboardEventCondition): boolean;
export declare function getLineAndCol(text: string, pos: number): {
line: number;
col: number;
beforeText: string;
afterText: string;
curLine: string;
prevLine: string | null;
nextLine: string | null;
};