Skip to content

PromptScript API


Interface: BlockShapeContract

Defined in: core/src/block-shapes.ts:13

Shape contract for one built-in block.

Properties

canonicalShape

readonly canonicalShape: "object" | "array" | "text" | "mixed"

Defined in: core/src/block-shapes.ts:15

Preferred shape for new files and examples


example

readonly example: string

Defined in: core/src/block-shapes.ts:21

Minimal canonical replacement used by diagnostics


legacyShapes

readonly legacyShapes: readonly ("object" | "array" | "text" | "mixed")[]

Defined in: core/src/block-shapes.ts:19

Supported shapes that may be formatter-sensitive


supportedShapes

readonly supportedShapes: readonly ("object" | "array" | "text" | "mixed")[]

Defined in: core/src/block-shapes.ts:17

Shapes that retain defined behavior