Skip to content

PromptScript API


Interface: InheritDeclaration

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

Inheritance declaration.

Example

@inherit @core/org
@inherit ./parent
@inherit @stacks/typescript(projectName: "my-app")

Extends

Properties

loc

loc: SourceLocation

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

Source location

Inherited from

BaseNode.loc


params?

optional params: ParamArgument[]

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

Template parameters (for parameterized inheritance)


path

path: PathReference

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

Path to parent file


type

readonly type: "InheritDeclaration"

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

Node type discriminator

Overrides

BaseNode.type