@suss/adapter-typescript 0.37.1 → 0.38.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.cjs +1350 -1084
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +572 -306
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -150,6 +150,8 @@ declare class ResolutionStore {
|
|
|
150
150
|
private readonly constructionSites;
|
|
151
151
|
/** What each local's reads do with it, by its declaration. A local's function is walked whole, so an answer stays true. */
|
|
152
152
|
private readonly localUses;
|
|
153
|
+
/** See `remembered`. */
|
|
154
|
+
private readonly answers;
|
|
153
155
|
/** Files the most recent query read, for the memo to keep. */
|
|
154
156
|
private lastQueryWalked;
|
|
155
157
|
/** See `environmentSiteFiles`; null until the first env question. */
|
|
@@ -199,6 +201,18 @@ declare class ResolutionStore {
|
|
|
199
201
|
*/
|
|
200
202
|
explainCallable(value: Node, options?: ExplainCallableOptions): ExplainedResolution | null;
|
|
201
203
|
resolveObject(value: Node): Node | null;
|
|
204
|
+
/**
|
|
205
|
+
* A question asked again over the same facts reads the same files and
|
|
206
|
+
* derives the same answer, so the store gives back the one it found
|
|
207
|
+
* before. The files that answer read still count as read.
|
|
208
|
+
*/
|
|
209
|
+
private remembered;
|
|
210
|
+
/**
|
|
211
|
+
* How many facts the store has read from source. They are only ever
|
|
212
|
+
* added, so work that asked the store questions and found this number
|
|
213
|
+
* unchanged afterwards would get the same answers asking again.
|
|
214
|
+
*/
|
|
215
|
+
sourceFactCount(): number;
|
|
202
216
|
/**
|
|
203
217
|
* The function a call returns: `app.use(requireCaller(config))`
|
|
204
218
|
* registers what the factory gives back. A separate question from
|
package/dist/index.d.ts
CHANGED
|
@@ -150,6 +150,8 @@ declare class ResolutionStore {
|
|
|
150
150
|
private readonly constructionSites;
|
|
151
151
|
/** What each local's reads do with it, by its declaration. A local's function is walked whole, so an answer stays true. */
|
|
152
152
|
private readonly localUses;
|
|
153
|
+
/** See `remembered`. */
|
|
154
|
+
private readonly answers;
|
|
153
155
|
/** Files the most recent query read, for the memo to keep. */
|
|
154
156
|
private lastQueryWalked;
|
|
155
157
|
/** See `environmentSiteFiles`; null until the first env question. */
|
|
@@ -199,6 +201,18 @@ declare class ResolutionStore {
|
|
|
199
201
|
*/
|
|
200
202
|
explainCallable(value: Node, options?: ExplainCallableOptions): ExplainedResolution | null;
|
|
201
203
|
resolveObject(value: Node): Node | null;
|
|
204
|
+
/**
|
|
205
|
+
* A question asked again over the same facts reads the same files and
|
|
206
|
+
* derives the same answer, so the store gives back the one it found
|
|
207
|
+
* before. The files that answer read still count as read.
|
|
208
|
+
*/
|
|
209
|
+
private remembered;
|
|
210
|
+
/**
|
|
211
|
+
* How many facts the store has read from source. They are only ever
|
|
212
|
+
* added, so work that asked the store questions and found this number
|
|
213
|
+
* unchanged afterwards would get the same answers asking again.
|
|
214
|
+
*/
|
|
215
|
+
sourceFactCount(): number;
|
|
202
216
|
/**
|
|
203
217
|
* The function a call returns: `app.use(requireCaller(config))`
|
|
204
218
|
* registers what the factory gives back. A separate question from
|