expressionItemOf

Returns the bound expression an inline content item carries, or null for a text run or a micronode.

@internote/canvas-sdkFunction
On this page
import { expressionItemOf } from '@internote/canvas-sdk';

What a renderer walking inline content by hand tests each item with before rendering it as an ExpressionValue.

#Signature

(item: unknown): ChalkExpression | null

#Parameters

item
One item of inline content.

Declared in packages/canvas-sdk/src/content/expressions.ts:126.

Last updated