QueueSuccessCarrier<Success>A phantom marker intersected onto a Tag to carry the worker success schema (A's
schema) at the type level, without touching the (invariant, RPC-facing) spec. The layer / serve
config and the store analytics recover A from here (default Schema.Void). Type-only — no
runtime field; the runtime success schema still rides the successSym stamp.
export interface interface QueueSuccessCarrier<Success extends Schema.Top = Schema.Void>A phantom marker intersected onto a
Tag
to carry the worker success schema (A's
schema) at the type level, without touching the (invariant, RPC-facing) spec. The layer / serve
config and the store analytics recover A from here (default
Schema.Void
). Type-only — no
runtime field; the runtime success schema still rides the successSym stamp.
QueueSuccessCarrier<function (type parameter) Success in QueueSuccessCarrier<Success extends Schema.Top = Schema.Void>Success extends import SchemaSchema.Top = typeof import SchemaSchema.const Void: Schema.Voidconst Void: {
Rebuild: Rebuild;
Iso: Iso;
ast: Ast;
Type: T;
Encoded: E;
DecodingServices: RD;
EncodingServices: RE;
annotate: (annotations: Schema.Annotations.Bottom<void, readonly []>) => Schema.Void;
annotateKey: (annotations: Schema.Annotations.Key<void>) => Schema.Void;
check: (checks_0: Check<void>, ...checks: Array<Check<void>>) => Schema.Void;
rebuild: (ast: Void) => Schema.Void;
make: (input: void, options?: Schema.MakeOptions) => void;
makeOption: (input: void, options?: Schema.MakeOptions) => Option.Option<void>;
makeEffect: (input: void, options?: Schema.MakeOptions) => Effect.Effect<void, Schema.SchemaError, never>;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
}
Type-level representation of
Void
.
Schema for a TypeScript void return value.
When to use
Use when you need to model the return value of a function, RPC, or endpoint
whose result is intentionally ignored.
Details
Runtime parsing accepts any present value and discards it, producing
undefined. The public decoded and encoded TypeScript representation remains
void, so typed construction, decoding, and encoding APIs are still modeled
as void.
Void> {
readonly [const queueSuccessCarrierSym: typeof queueSuccessCarrierSymqueueSuccessCarrierSym]?: function (type parameter) Success in QueueSuccessCarrier<Success extends Schema.Top = Schema.Void>Success;
}