Skip to content
1 min read · 276 words

Interface: MethodDescriptor<A, R>

Defined in: src/batteries/isolation/types.ts:66

A method descriptor produced by method. Carries the declared runtime options plus phantom (never-constructed) fields that pin down the argument tuple and return type for the mapped types below — reading descriptor.__args/descriptor.__result at the TYPE level only, never at runtime.

Extends

Type Parameters

Type ParameterDefault type
A extends unknown[]unknown[]
Runknown

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
__args?readonlyAPhantom-only: never assigned a real value. Pins the argument tuple type.-src/batteries/isolation/types.ts:73
__result?readonlyRPhantom-only: never assigned a real value. Pins the resolved result type.-src/batteries/isolation/types.ts:75
codec?publicCodecModeOverride the codec tier for this method's arguments and return value. Default: 'auto'.MethodOptions.codecsrc/batteries/isolation/types.ts:52
kindreadonly"method"Discriminant identifying this descriptor as a method (vs. a stream or event).-src/batteries/isolation/types.ts:71
signal?publicbooleanWhen true, the facade's generated method accepts a trailing AbortSignal and the guest implementation receives a trailing IsolationCallContext carrying that signal. When omitted/false, a trailing signal argument is still accepted on the facade (for call-site uniformity) but is not forwarded anywhere meaningful — the implementation is never given a context parameter.MethodOptions.signalsrc/batteries/isolation/types.ts:50