@suss/adapter-typescript 0.37.1 → 0.38.1
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 +1406 -1085
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +622 -300
- 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,33 @@ 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, when no fact its derivation looked up has
|
|
206
|
+
* arrived since, reads the same files and derives the same answer, so
|
|
207
|
+
* the store gives back the one it found before. The files that answer
|
|
208
|
+
* read still count as read.
|
|
209
|
+
*
|
|
210
|
+
* Noting the lookups costs the question a share of its time, and most
|
|
211
|
+
* questions are asked once, so a question notes them only once it has
|
|
212
|
+
* had to be asked again. Until then, as without demand, only an
|
|
213
|
+
* unchanged fact count says the answer is the same. Without demand the
|
|
214
|
+
* rules keep every conclusion between questions, so a question's own
|
|
215
|
+
* lookups miss what earlier questions derived for it. A question that
|
|
216
|
+
* started on another question's leftovers gets the count too.
|
|
217
|
+
*/
|
|
218
|
+
private remembered;
|
|
219
|
+
/**
|
|
220
|
+
* Facts added since the last derivation have not reached the relations
|
|
221
|
+
* the rules keep between questions, so the reads cannot say yet what
|
|
222
|
+
* those facts change.
|
|
223
|
+
*/
|
|
224
|
+
private stillDerives;
|
|
225
|
+
/**
|
|
226
|
+
* How many facts the store has read from source. They are only ever
|
|
227
|
+
* added, so work that asked the store questions and found this number
|
|
228
|
+
* unchanged afterwards would get the same answers asking again.
|
|
229
|
+
*/
|
|
230
|
+
sourceFactCount(): number;
|
|
202
231
|
/**
|
|
203
232
|
* The function a call returns: `app.use(requireCaller(config))`
|
|
204
233
|
* 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,33 @@ 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, when no fact its derivation looked up has
|
|
206
|
+
* arrived since, reads the same files and derives the same answer, so
|
|
207
|
+
* the store gives back the one it found before. The files that answer
|
|
208
|
+
* read still count as read.
|
|
209
|
+
*
|
|
210
|
+
* Noting the lookups costs the question a share of its time, and most
|
|
211
|
+
* questions are asked once, so a question notes them only once it has
|
|
212
|
+
* had to be asked again. Until then, as without demand, only an
|
|
213
|
+
* unchanged fact count says the answer is the same. Without demand the
|
|
214
|
+
* rules keep every conclusion between questions, so a question's own
|
|
215
|
+
* lookups miss what earlier questions derived for it. A question that
|
|
216
|
+
* started on another question's leftovers gets the count too.
|
|
217
|
+
*/
|
|
218
|
+
private remembered;
|
|
219
|
+
/**
|
|
220
|
+
* Facts added since the last derivation have not reached the relations
|
|
221
|
+
* the rules keep between questions, so the reads cannot say yet what
|
|
222
|
+
* those facts change.
|
|
223
|
+
*/
|
|
224
|
+
private stillDerives;
|
|
225
|
+
/**
|
|
226
|
+
* How many facts the store has read from source. They are only ever
|
|
227
|
+
* added, so work that asked the store questions and found this number
|
|
228
|
+
* unchanged afterwards would get the same answers asking again.
|
|
229
|
+
*/
|
|
230
|
+
sourceFactCount(): number;
|
|
202
231
|
/**
|
|
203
232
|
* The function a call returns: `app.use(requireCaller(config))`
|
|
204
233
|
* registers what the factory gives back. A separate question from
|