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.
- package/dist/hook/refresh.js +8 -1
- package/dist/hook/refresh.js.map +1 -1
- package/package.json +6 -6
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/sidecar/dist/src/capture/anchors.d.ts +15 -2
- package/sidecar/dist/src/capture/anchors.js +28 -11
- package/sidecar/dist/src/capture/check-poison.js +4 -14
- package/sidecar/dist/src/capture/index.js +54 -36
- package/sidecar/dist/src/capture/installed-package.d.ts +2 -0
- package/sidecar/dist/src/capture/installed-package.js +2 -1
- package/sidecar/dist/src/capture/outside-root.d.ts +19 -0
- package/sidecar/dist/src/capture/outside-root.js +39 -2
- package/sidecar/dist/src/capture/self-check.js +3 -13
- package/sidecar/dist/src/capture/specifiers.d.ts +14 -0
- package/sidecar/dist/src/capture/specifiers.js +25 -0
- package/sidecar/dist/src/function-line-index.d.ts +30 -0
- package/sidecar/dist/src/function-line-index.js +162 -0
- package/sidecar/dist/src/index.d.ts +5 -0
- package/sidecar/dist/src/index.js +29 -5
- package/sidecar/dist/src/line-index.d.ts +9 -0
- package/sidecar/dist/src/line-index.js +26 -0
- package/sidecar/dist/src/progress.d.ts +22 -0
- package/sidecar/dist/src/progress.js +31 -0
- package/sidecar/dist/src/retype.js +1 -19
- package/sidecar/dist/src/type-inferrer.d.ts +92 -11
- package/sidecar/dist/src/type-inferrer.js +356 -149
- package/sidecar/dist/src/types.d.ts +13 -6
|
@@ -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.
|
|
784
|
-
*
|
|
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.
|
|
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
|
/**
|