Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / MacroFn

Interface: MacroFn<A> โ€‹

Defined in: core/function_ref.ts:45

A function built by dp.macro: its body reads args as $(name) placeholders. Call it with ctx.invoke.

Extends โ€‹

Type Parameters โ€‹

A โ€‹

A extends object = object

Properties โ€‹

args? โ€‹

readonly optional args?: A

Defined in: core/function_ref.ts:47

Only carries A for ctx.invoke to check args against.


node โ€‹

node: FunctionNode

Defined in: core/function_ref.ts:13

Inherited from โ€‹

FunctionRef.node


params โ€‹

readonly params: ReadonlySet<string>

Defined in: core/function_ref.ts:52

The arg names the body reads.

Methods โ€‹

build() โ€‹

build(builder): this

Defined in: core/function_ref.ts:16

Appends builder's commands to the function; returns the ref.

Parameters โ€‹

builder โ€‹

(ctx) => void

Returns โ€‹

this

Inherited from โ€‹

FunctionRef.build


getName() โ€‹

getName(): string

Defined in: core/function_ref.ts:23

The function's output name, e.g. zzzprivate/door/open.

Returns โ€‹

string

Inherited from โ€‹

FunctionRef.getName


render() โ€‹

render(): string

Defined in: core/function_ref.ts:28

The function's id, e.g. pack:zzzprivate/door/open.

Returns โ€‹

string

Inherited from โ€‹

FunctionRef.render

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.