Skip to content

PromptScript API


Interface: CompileError

Defined in: compiler/src/types.ts:87

Compilation error with additional metadata.

Properties

code

code: string

Defined in: compiler/src/types.ts:91

Error code or rule ID


format()?

optional format: () => string

Defined in: compiler/src/types.ts:101

Format error for display

Returns

string


location?

optional location: object

Defined in: compiler/src/types.ts:95

Source location

column?

optional column: number

file?

optional file: string

line?

optional line: number


message

message: string

Defined in: compiler/src/types.ts:93

Error message


name

name: string

Defined in: compiler/src/types.ts:89

Error name/type