Skip to content

PromptScript API


Interface: InlineUseEntry

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

Canonical inline import entry.

Extends

Properties

declaration

readonly declaration: object

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

alias?

readonly optional alias?: string

Alias for the phase

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

outputDir?

readonly optional outputDir?: string

Optional inline output directory (forward-slash relative).

params?

readonly optional params?: readonly object[]

Template parameters

path

readonly path: object

Path to the sub-skill file

path.isRelative

readonly isRelative: boolean

Whether this is a relative path

path.loc

readonly loc: object

Source location

path.loc.column

readonly column: number

Column number (1-indexed)

path.loc.file

readonly file: string

File path

path.loc.line

readonly line: number

Line number (1-indexed)

path.loc.offset?

readonly optional offset?: number

Byte offset from start of file

path.namespace?

readonly optional namespace?: string

Namespace (e.g., "core" from "@core/...")

path.raw

readonly raw: string

Original string representation

path.segments

readonly segments: readonly string[]

Path segments

path.type

readonly type: "PathReference"

Node type discriminator

path.version?

readonly optional version?: string

Version constraint

type

readonly type: "InlineUseDeclaration"


loc

readonly loc: object

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

column

readonly column: number

Column number (1-indexed)

file

readonly file: string

File path

line

readonly line: number

Line number (1-indexed)

offset?

readonly optional offset?: number

Byte offset from start of file

Inherited from

CanonicalNode.loc


type

readonly type: "InlineUseEntry"

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

Overrides

CanonicalNode.type