UNPKG

react-mde

Version:
13 lines (12 loc) 450 B
export declare const INSERT_TEXT_AT_CURSOR = "INSERT_TEXT_AT_CURSOR"; export declare const SELECT_RANGE = "SELECT_RANGE"; export interface InsertTextAtCursorInstruction { type: typeof INSERT_TEXT_AT_CURSOR; text: string; } export interface SelectRangeInstruction { type: typeof SELECT_RANGE; selectionStart: number; selectionEnd: number; } export declare type Instruction = InsertTextAtCursorInstruction | SelectRangeInstruction;