Skip to content

PromptScript API


Interface: BlockBodyOptions

Defined in: core/src/canonical-ast.ts:50

Properties

projection?

readonly optional projection?: "TextContent" | "ObjectContent" | "ArrayContent" | "MixedContent"

Defined in: core/src/canonical-ast.ts:51


text?

readonly optional text?: object

Defined in: core/src/canonical-ast.ts:52

loc

readonly loc: object

Source location

loc.column

readonly column: number

Column number (1-indexed)

loc.file

readonly file: string

File path

loc.line

readonly line: number

Line number (1-indexed)

loc.offset?

readonly optional offset?: number

Byte offset from start of file

type

readonly type: "TextContent"

Node type discriminator

value

readonly value: string

Text value (without delimiters)