mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-06 05:46:26 +00:00
8 lines
204 B
TypeScript
8 lines
204 B
TypeScript
import { ExcalidrawElement, ExcalidrawTextElement } from "./types";
|
|
|
|
export function isTextElement(
|
|
element: ExcalidrawElement,
|
|
): element is ExcalidrawTextElement {
|
|
return element.type === "text";
|
|
}
|