carrick 0.3.135 → 0.3.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,7 +37,7 @@
37
37
  */
38
38
  import { ts, type Project } from 'ts-morph';
39
39
  import { type PackageDirectoryOf } from './position-rows.js';
40
- import type { ClaimSlot, LibraryCheck, LibrarySurface, SemanticsCheck, SemanticsModule, SemanticsDeclaration, SemanticsResult } from './types.js';
40
+ import type { ClaimSlot, LibraryCheck, LibrarySurface, ResultShape, SemanticsCheck, SemanticsModule, SemanticsDeclaration, SemanticsResult } from './types.js';
41
41
  /** How one check came out, before it is stamped with its claim and receiver. */
42
42
  type Outcome = {
43
43
  verdict: 'verified';
@@ -55,6 +55,12 @@ type Outcome = {
55
55
  * itself verified (carrick#2968). Only `request_member_missing`.
56
56
  */
57
57
  requestDropped?: string;
58
+ /**
59
+ * In-process only: on a type receiver, the declarations its type stands
60
+ * on (`declaredSymbols`), the key a reader joins a receiver by
61
+ * (carrick#3046).
62
+ */
63
+ receiverTypes?: readonly ts.Declaration[];
58
64
  } | {
59
65
  verdict: 'failed' | 'unchecked';
60
66
  reason: string;
@@ -198,6 +204,22 @@ export declare function declarationKey(declaration: ts.Node): string;
198
204
  */
199
205
  export interface LabelledMembers {
200
206
  sends: ReadonlyMap<string, ClaimSlot>;
207
+ /**
208
+ * The properties a service assigns to reply (`form: set`, carrick#3047),
209
+ * by {@link declarationKey} of the property, with the slot the assigned
210
+ * value sits in (always argument 0). Never in `sends`.
211
+ */
212
+ sets: ReadonlyMap<string, ClaimSlot>;
213
+ /**
214
+ * The route members whose handler's return is the reply (`returns` on a
215
+ * receive op, carrick#3054), by {@link declarationKey} of the route member,
216
+ * with the slot the handler sits in and the part of the return that holds
217
+ * the body. Never in `sends`.
218
+ */
219
+ returns: ReadonlyMap<string, {
220
+ handler: ClaimSlot;
221
+ result?: ResultShape;
222
+ }>;
201
223
  bodies: ReadonlySet<string>;
202
224
  /** How each label read came out (`verified`, or the reason it was not), for the log. */
203
225
  outcomes?: Readonly<Record<string, number>>;
@@ -206,7 +228,11 @@ export interface LabelledMembers {
206
228
  export interface SurfaceOptions {
207
229
  /** Each member's `handlers` (carrick#2674 S3). */
208
230
  handlers?: boolean;
231
+ /** `types[]` widened, `settable`, `types_left_out` (carrick#3050). */
232
+ types?: boolean;
209
233
  /** Each signature's `result_candidates` (carrick#2817). */
210
234
  resultCandidates?: boolean;
235
+ /** Handler-parameter members the whole call may list (default `HANDLER_LISTING_BUDGET`, carrick#3016). */
236
+ maxHandlerMembers?: number;
211
237
  }
212
238
  export {};