Skip to content

PromptScript API


Interface: ExtendBlock

Defined in: core/src/types/ast.ts:173

Extension block that modifies an existing block.

Example

@extend identity {
  """
  Additional context.
  """
}

@extend standards.code {
  frameworks: [react]
}

Extends

Properties

content

content: BlockContent

Defined in: core/src/types/ast.ts:178

Content to merge


loc

loc: SourceLocation

Defined in: core/src/types/ast.ts:14

Source location

Inherited from

BaseNode.loc


targetPath

targetPath: string

Defined in: core/src/types/ast.ts:176

Dot-separated path to target (e.g., "standards.code")


type

readonly type: "ExtendBlock"

Defined in: core/src/types/ast.ts:174

Node type discriminator

Overrides

BaseNode.type