carrick 0.3.106 → 0.3.107

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.
@@ -38,7 +38,10 @@ export interface ExtractionRule {
38
38
  originModuleGlobs?: string[];
39
39
  /**
40
40
  * Index of the generic type argument containing the payload.
41
- * Defaults to 0 (first type arg).
41
+ * Defaults to 0 (first type arg). It counts the parameters of the name
42
+ * the rule matched: a type alias named in `wrapperSymbols` is read by its
43
+ * own parameters, which it may order differently from the type it stands
44
+ * for (carrick#1843).
42
45
  * Examples:
43
46
  * - Response<T> → index 0
44
47
  * - Map<K, V> → index 1 for values
@@ -780,14 +783,18 @@ export interface InferredType {
780
783
  array_depth?: number;
781
784
  /**
782
785
  * Declaration file of `primary_type_symbol` (absolute path), when the
783
- * anchor symbol has a resolvable source declaration. Lets the scanner's
784
- * pub/sub two-anchor arbitration (carrick#413) re-aim a demoted explicit
786
+ * anchor symbol has a resolvable source declaration. Reported by every
787
+ * infer kind that reports the symbol (carrick#1819): it is where a reader
788
+ * finds the type an anchor names, and the scanner writes an anchor's home
789
+ * from it. The file is the one that declares the symbol the type resolves
790
+ * to, never a barrel that re-exports it.
791
+ *
792
+ * The scanner's pub/sub two-anchor arbitration (carrick#413) also reads it,
793
+ * for a borrowed-anchor request only, to re-aim a demoted explicit
785
794
  * `SymbolRequest` at the tsc-witnessed payload type: the bundler requires
786
795
  * the symbol to be declared in, or re-exported by, the request's
787
796
  * `source_file`, and the inference is the only party that knows where that
788
- * is. Reported only by
789
- * the pub/sub infer kinds (`function_param`, `expression`); other kinds
790
- * omit it.
797
+ * is.
791
798
  */
792
799
  primary_type_symbol_source?: string;
793
800
  /**