Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
15 lines
939 B
Plaintext
15 lines
939 B
Plaintext
/**
|
|
* 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;
|