withDocumentVariables
Runs fn with chalkVariables answering names, and restores what it answered before.
@internote/canvas-sdkOn this page
import { withDocumentVariables } from '@internote/canvas-sdk';#Signature
<T>(names: readonly string[], fn: () => T): T#Parameters
namesThe letters the document's controls introduce.
fnThe work that types values with them bound.
Declared in packages/canvas-sdk/src/content/chalk-runtime.ts:193.