MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / isParagraphElement

Function isParagraphElement

packages/web/src/features/chat/utils.ts:127–129  ·  view source on GitHub ↗
(element: Descendant)

Source from the content-addressed store, hash-verified

125}
126
127export const isParagraphElement = (element: Descendant): element is ParagraphElement => {
128 return 'type' in element && element.type === 'paragraph';
129}
130
131export const slateContentToString = (children: Descendant[]): string => {
132 return children.map((child) => {

Callers 1

slateContentToStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected