greybel-interpreter 2.5.1 → 2.5.3
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/interpreter.d.ts
CHANGED
package/dist/interpreter.js
CHANGED
|
@@ -28,6 +28,13 @@ const boolean_1 = require("./types/boolean");
|
|
|
28
28
|
exports.PARAMS_PROPERTY = new string_1.CustomString('params');
|
|
29
29
|
exports.IS_GREYBEL_PROPERTY = new string_1.CustomString('IS_GREYBEL');
|
|
30
30
|
class Interpreter extends events_1.EventEmitter {
|
|
31
|
+
static clearAllIntrinsics() {
|
|
32
|
+
number_1.CustomNumber.clearIntrinsics();
|
|
33
|
+
string_1.CustomString.clearIntrinsics();
|
|
34
|
+
function_1.CustomFunction.intrinsics.clear();
|
|
35
|
+
list_1.CustomList.clearIntrinsics();
|
|
36
|
+
map_1.CustomMap.clearIntrinsics();
|
|
37
|
+
}
|
|
31
38
|
constructor(options) {
|
|
32
39
|
var _a, _b, _c, _d, _e, _f;
|
|
33
40
|
super();
|
|
@@ -12,6 +12,7 @@ export declare abstract class CustomValueWithIntrinsics extends CustomValue {
|
|
|
12
12
|
static readonly intrinsics: ObjectValue;
|
|
13
13
|
static getIntrinsics(): ObjectValue;
|
|
14
14
|
static addIntrinsic(key: CustomValue, fn: CustomFunction): void;
|
|
15
|
+
static clearIntrinsics(): void;
|
|
15
16
|
getIntrinsics(): ObjectValue;
|
|
16
17
|
}
|
|
17
18
|
export declare abstract class CustomObject extends CustomValueWithIntrinsics {
|