@suss/adapter-typescript 0.7.2 → 0.9.0

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.
package/dist/index.d.cts CHANGED
@@ -184,7 +184,14 @@ declare class ResolutionStore {
184
184
  private readonly graph;
185
185
  private stale;
186
186
  constructor(wrappers?: TransparentWrapper[]);
187
- resolveCallable(value: Node): Node | null;
187
+ /**
188
+ * `alsoFrom` is a second file to walk out from, for a caller that
189
+ * knows where the value it is asking about was set up. The walk
190
+ * follows imports outward from the value's own file, so a file that
191
+ * imports it, and passed something to the constructor, is somewhere
192
+ * the walk never reaches on its own.
193
+ */
194
+ resolveCallable(value: Node, alsoFrom?: SourceFile): Node | null;
188
195
  resolveObject(value: Node): Node | null;
189
196
  /**
190
197
  * For a value that is neither a function nor an object, such as a
@@ -382,8 +389,8 @@ interface DiscoveredUnit {
382
389
  * shape for decorator-driven controllers).
383
390
  */
384
391
  routeInfo?: {
385
- method: string;
386
- path: string;
392
+ method: string | null;
393
+ path: string | null;
387
394
  };
388
395
  /**
389
396
  * Populated by a pack's `discoverUnits` callback for a message-bus
package/dist/index.d.ts CHANGED
@@ -184,7 +184,14 @@ declare class ResolutionStore {
184
184
  private readonly graph;
185
185
  private stale;
186
186
  constructor(wrappers?: TransparentWrapper[]);
187
- resolveCallable(value: Node): Node | null;
187
+ /**
188
+ * `alsoFrom` is a second file to walk out from, for a caller that
189
+ * knows where the value it is asking about was set up. The walk
190
+ * follows imports outward from the value's own file, so a file that
191
+ * imports it, and passed something to the constructor, is somewhere
192
+ * the walk never reaches on its own.
193
+ */
194
+ resolveCallable(value: Node, alsoFrom?: SourceFile): Node | null;
188
195
  resolveObject(value: Node): Node | null;
189
196
  /**
190
197
  * For a value that is neither a function nor an object, such as a
@@ -382,8 +389,8 @@ interface DiscoveredUnit {
382
389
  * shape for decorator-driven controllers).
383
390
  */
384
391
  routeInfo?: {
385
- method: string;
386
- path: string;
392
+ method: string | null;
393
+ path: string | null;
387
394
  };
388
395
  /**
389
396
  * Populated by a pack's `discoverUnits` callback for a message-bus