@modelprofile.com/flexharness 13.0.0 → 13.1.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_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.toolcatalog.d.ts +24 -2
- package/dist_ts/classes.toolcatalog.js +122 -34
- package/dist_ts_typedrequest/catalog.d.ts +3 -1
- package/dist_ts_typedrequest/catalog.js +8 -4
- package/dist_ts_typedrequest/describe.js +2 -22
- package/dist_ts_typedrequest/interfaces.d.ts +4 -1
- package/dist_ts_typedrequest/references.d.ts +17 -0
- package/dist_ts_typedrequest/references.js +65 -0
- package/package.json +3 -3
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.toolcatalog.ts +127 -30
- package/ts_typedrequest/catalog.ts +7 -3
- package/ts_typedrequest/describe.ts +1 -22
- package/ts_typedrequest/interfaces.ts +4 -1
- package/ts_typedrequest/readme.md +1 -1
- package/ts_typedrequest/references.ts +68 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@modelprofile.com/flexharness',
|
|
6
|
-
version: '13.
|
|
6
|
+
version: '13.1.1',
|
|
7
7
|
description: 'The FlexHarness toolbox source repository and shared dependency catalog.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSwrQkFBK0I7SUFDckMsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLDBFQUEwRTtDQUN4RixDQUFBIn0=
|
|
@@ -27,6 +27,7 @@ export declare class FlexToolCatalog<TScope = unknown> {
|
|
|
27
27
|
/** `search` follows a clear top match with its declaration. */
|
|
28
28
|
private readonly describeTopMatch;
|
|
29
29
|
private namespaceTree?;
|
|
30
|
+
private knownTypeNames?;
|
|
30
31
|
private constructor();
|
|
31
32
|
/**
|
|
32
33
|
* The identifier a name from elsewhere, such as a file or an API's method, is declared under as a
|
|
@@ -35,6 +36,20 @@ export declare class FlexToolCatalog<TScope = unknown> {
|
|
|
35
36
|
* maps type names that are no identifiers the same way.
|
|
36
37
|
*/
|
|
37
38
|
static identifierOf(name: string): string;
|
|
39
|
+
/**
|
|
40
|
+
* The identifier each type name of a catalog of exactly these types is declared under: a name that
|
|
41
|
+
* is an identifier keeps it, and each other takes `identifierOf()`'s, in code-point order with
|
|
42
|
+
* `_2`, `_3` … appended where that is taken (`a_b` and `a-b` are declared as `a_b` and `a_b_2`).
|
|
43
|
+
* As a name's identifier depends on the other names, a host that hands a catalog only some of its
|
|
44
|
+
* types keeps the ones that took the lower identifiers along.
|
|
45
|
+
*/
|
|
46
|
+
static identifiersOf(names: Iterable<string>): Map<string, string>;
|
|
47
|
+
/**
|
|
48
|
+
* The identifiers a declaration's code names, sorted; its comments and the contents of its string
|
|
49
|
+
* literals name none. The catalog takes the named types a declaration uses from these, so a host
|
|
50
|
+
* that hands a catalog only some of its types finds the ones a declaration needs the same way.
|
|
51
|
+
*/
|
|
52
|
+
static identifiersIn(declaration: string): string[];
|
|
38
53
|
/**
|
|
39
54
|
* Prepares `catalog`. Preparing the same object again returns the cached preparation, so a host
|
|
40
55
|
* that returns one catalog object for every run pays for it once.
|
|
@@ -46,9 +61,13 @@ export declare class FlexToolCatalog<TScope = unknown> {
|
|
|
46
61
|
}): Promise<FlexToolCatalog<TScope>>;
|
|
47
62
|
/** Every method path this catalog offers, sorted. */
|
|
48
63
|
get methods(): string[];
|
|
49
|
-
/** Every named type, sorted. */
|
|
64
|
+
/** Every named type the catalog knows, sorted. */
|
|
50
65
|
get types(): string[];
|
|
51
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* The same catalog offering only `paths`. It knows the named types these methods' descriptions
|
|
68
|
+
* reach, those no method's description reaches, and the types these reach in turn: a type only
|
|
69
|
+
* the other methods reach is unknown to it.
|
|
70
|
+
*/
|
|
52
71
|
restrict(paths: Iterable<string>): FlexToolCatalog<TScope>;
|
|
53
72
|
has(path: string): boolean;
|
|
54
73
|
/** Whether the method at `path` declared that it only reads. */
|
|
@@ -94,6 +113,9 @@ export declare class FlexToolCatalog<TScope = unknown> {
|
|
|
94
113
|
/** The method paths search and suggestions may name: built-ins such as `results.get` stay out. */
|
|
95
114
|
private listedMethods;
|
|
96
115
|
private isAdmitted;
|
|
116
|
+
private hasType;
|
|
117
|
+
/** The named types a restricted catalog knows; see `restrict()`. */
|
|
118
|
+
private knownTypes;
|
|
97
119
|
private tree;
|
|
98
120
|
private topLevelLine;
|
|
99
121
|
private page;
|