Skip to content

PromptScript API


Interface: MetaBlock

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

Metadata block containing file identification.

Example

@meta {
  id: "my-project"
  syntax: "1.0.0"
  params: {
    projectName: string
    strict?: boolean = true
  }
}

Extends

Properties

fields

fields: Record\<string, Value>

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

Key-value pairs


loc

loc: SourceLocation

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

Source location

Inherited from

BaseNode.loc


params?

optional params: ParamDefinition[]

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

Template parameter definitions (for parameterized inheritance)


type

readonly type: "MetaBlock"

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

Node type discriminator

Overrides

BaseNode.type