Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.5.2/schema.json",
"$schema": "https://biomejs.dev/schemas/2.5.3/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
Expand Down
4 changes: 4 additions & 0 deletions packages/0-framework/1-core/core/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ export interface ModuleNode<
/** Declared param-forwarding slots (authored as `params`) — forwarded to internals via `ctx.params`, the same rail secrets ride on. */
readonly paramSlots: PN;
readonly expose: E;
// biome-ignore lint/suspicious/noConfusingVoidType: void accepts bodies with no return statement; undefined would reject them.
body(ctx: ModuleContext<D, S, PN>): ModuleOutputs<E> | void;
}

Expand Down Expand Up @@ -673,6 +674,7 @@ export function module<
>(
name: string,
boundary: { deps?: D; secrets?: S; params?: PN; expose?: E },
// biome-ignore lint/suspicious/noConfusingVoidType: void accepts bodies with no return statement; undefined would reject them.
body: (ctx: ModuleContext<D, S, PN>) => ModuleOutputs<E> | void,
): ModuleNode<D, E, S, PN>;
/**
Expand All @@ -684,6 +686,7 @@ export function module(
boundaryOrBody:
| { deps?: Deps; secrets?: Secrets; params?: ParamNeeds; expose?: Expose }
| ((ctx: ModuleContext<Deps>) => void),
// biome-ignore lint/suspicious/noConfusingVoidType: void accepts bodies with no return statement; undefined would reject them.
maybeBody?: (ctx: ModuleContext<Deps>) => ModuleOutputs<Expose> | void,
): ModuleNode {
requireName(name, 'module');
Expand All @@ -693,6 +696,7 @@ export function module(
const secretSlots = frozenShallowCopy(boundary.secrets ?? {});
const paramSlots = frozenShallowCopy(boundary.params ?? {});
const expose = frozenShallowCopy(boundary.expose ?? {});
// biome-ignore lint/suspicious/noConfusingVoidType: void accepts bodies with no return statement; undefined would reject them.
const body: (ctx: ModuleContext<Deps>) => ModuleOutputs<Expose> | void = closedRoot
? (ctx) => {
boundaryOrBody(ctx);
Expand Down
Loading