15 lines
939 B
TypeScript
15 lines
939 B
TypeScript
/**
|
|
* Determines if the root has any text content and can trim any whitespace if it does.
|
|
* @param isEditorComposing - Is the editor in composition mode due to an active Input Method Editor?
|
|
* @param trim - Should the root text have its whitespaced trimmed? Defaults to true.
|
|
* @returns true if text content is empty, false if there is text or isEditorComposing is true.
|
|
*/
|
|
export declare function $isRootTextContentEmpty(isEditorComposing: boolean, trim?: boolean): boolean;
|
|
/**
|
|
* Returns a function that executes {@link $isRootTextContentEmpty}
|
|
* @param isEditorComposing - Is the editor in composition mode due to an active Input Method Editor?
|
|
* @param trim - Should the root text have its whitespaced trimmed? Defaults to true.
|
|
* @returns A function that executes $isRootTextContentEmpty based on arguments.
|
|
*/
|
|
export declare function $isRootTextContentEmptyCurry(isEditorComposing: boolean, trim?: boolean): () => boolean;
|