fallow-type-aware 3.35.0 → 3.36.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.
@@ -1,4 +1,4 @@
1
- import { SymbolFlags } from "typescript/unstable/sync";
1
+ import { sync } from "./backend.mjs";
2
2
 
3
3
  import {
4
4
  declarationName,
@@ -7,6 +7,8 @@ import {
7
7
  stableDeclarationKey,
8
8
  } from "./semantic-identity.mjs";
9
9
 
10
+ const { SymbolFlags } = sync;
11
+
10
12
  export const targetName = (declaration) => declarationName(declaration) ?? "default";
11
13
 
12
14
  // A target key contains the declaration name. The name check skips the key
@@ -66,3 +68,7 @@ export const matchingAliasEntries = (project, symbol, namespace, state) => {
66
68
  }
67
69
  return byNamespace.get(namespace);
68
70
  };
71
+
72
+ export const recordSymbolUncertainty = (state, entry, reasonCode) => {
73
+ state.uncertaintiesByQuery.get(entry.query.id).add(reasonCode);
74
+ };