@soulcraft/brainy 0.30.0 → 0.31.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/README.md +39 -0
- package/dist/index.d.ts +2 -1
- package/dist/unified.js +40 -1
- package/dist/unified.min.js +747 -747
- package/dist/utils/typeUtils.d.ts +30 -0
- package/dist/utils/typeUtils.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type Utilities
|
|
3
|
+
*
|
|
4
|
+
* This module provides utility functions for working with the Brainy type system,
|
|
5
|
+
* particularly for accessing lists of noun and verb types.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Returns an array of all available noun types
|
|
9
|
+
*
|
|
10
|
+
* @returns {string[]} Array of all noun type values
|
|
11
|
+
*/
|
|
12
|
+
export declare function getNounTypes(): string[];
|
|
13
|
+
/**
|
|
14
|
+
* Returns an array of all available verb types
|
|
15
|
+
*
|
|
16
|
+
* @returns {string[]} Array of all verb type values
|
|
17
|
+
*/
|
|
18
|
+
export declare function getVerbTypes(): string[];
|
|
19
|
+
/**
|
|
20
|
+
* Returns a map of noun type keys to their string values
|
|
21
|
+
*
|
|
22
|
+
* @returns {Record<string, string>} Map of noun type keys to values
|
|
23
|
+
*/
|
|
24
|
+
export declare function getNounTypeMap(): Record<string, string>;
|
|
25
|
+
/**
|
|
26
|
+
* Returns a map of verb type keys to their string values
|
|
27
|
+
*
|
|
28
|
+
* @returns {Record<string, string>} Map of verb type keys to values
|
|
29
|
+
*/
|
|
30
|
+
export declare function getVerbTypeMap(): Record<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeUtils.d.ts","sourceRoot":"","sources":["../../src/utils/typeUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEvD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEvD"}
|
package/package.json
CHANGED