Appearance
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? โ
readonlyoptionalargs?: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 โ
params โ
readonlyparams: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 โ
getName() โ
getName():
string
Defined in: core/function_ref.ts:23
The function's output name, e.g. zzzprivate/door/open.
Returns โ
string
Inherited from โ
render() โ
render():
string
Defined in: core/function_ref.ts:28
The function's id, e.g. pack:zzzprivate/door/open.
Returns โ
string