mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-21 00:10:33 +02:00
8 lines
203 B
TypeScript
8 lines
203 B
TypeScript
import { ExcalidrawElement, ExcalidrawTextElement } from "./types";
|
|
|
|
export function isTextElement(
|
|
element: ExcalidrawElement
|
|
): element is ExcalidrawTextElement {
|
|
return element.type === "text";
|
|
}
|