@thi.ng/fuzzy 2.1.73 → 2.1.74

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-07T20:40:47Z
3
+ - **Last updated**: 2024-03-13T14:04:31Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/fuzzy",
3
- "version": "2.1.73",
3
+ "version": "2.1.74",
4
4
  "description": "Fuzzy logic operators & configurable rule inferencing engine",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,15 +36,15 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.29",
40
- "@thi.ng/math": "^5.10.6"
39
+ "@thi.ng/api": "^8.9.30",
40
+ "@thi.ng/math": "^5.10.7"
41
41
  },
42
42
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.40.1",
44
- "esbuild": "^0.20.0",
43
+ "@microsoft/api-extractor": "^7.42.3",
44
+ "esbuild": "^0.20.1",
45
45
  "rimraf": "^5.0.5",
46
- "typedoc": "^0.25.7",
47
- "typescript": "^5.3.3"
46
+ "typedoc": "^0.25.12",
47
+ "typescript": "^5.4.2"
48
48
  },
49
49
  "keywords": [
50
50
  "agent",
@@ -106,5 +106,5 @@
106
106
  "thi.ng": {
107
107
  "year": 2020
108
108
  },
109
- "gitHead": "69100942474942f7446ac645d59d91e7dfc352f9\n"
109
+ "gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
110
110
  }
package/rules.d.ts CHANGED
@@ -36,8 +36,8 @@ import type { LVarKeySet, LVarSet, Rule } from "./api.js";
36
36
  * @param then -
37
37
  * @param weight -
38
38
  */
39
- export declare const rule: <I extends LVarSet<string>, O extends LVarSet<string>>(op: FnN2, $if: Partial<keyof I extends infer T extends keyof I ? { [k in T]: keyof I[k]["terms"]; } : never>, then: Partial<keyof O extends infer T_1 extends keyof O ? { [k_1 in T_1]: keyof O[k_1]["terms"]; } : never>, weight?: number) => Rule<I, O>;
40
- export declare const and: <I extends LVarSet<string>, O extends LVarSet<string>>($if: Partial<keyof I extends infer T extends keyof I ? { [k in T]: keyof I[k]["terms"]; } : never>, then: Partial<keyof O extends infer T_1 extends keyof O ? { [k_1 in T_1]: keyof O[k_1]["terms"]; } : never>, weight?: number) => Rule<I, O>;
41
- export declare const strongAnd: <I extends LVarSet<string>, O extends LVarSet<string>>($if: Partial<keyof I extends infer T extends keyof I ? { [k in T]: keyof I[k]["terms"]; } : never>, then: Partial<keyof O extends infer T_1 extends keyof O ? { [k_1 in T_1]: keyof O[k_1]["terms"]; } : never>, weight?: number) => Rule<I, O>;
42
- export declare const or: <I extends LVarSet<string>, O extends LVarSet<string>>($if: Partial<keyof I extends infer T extends keyof I ? { [k in T]: keyof I[k]["terms"]; } : never>, then: Partial<keyof O extends infer T_1 extends keyof O ? { [k_1 in T_1]: keyof O[k_1]["terms"]; } : never>, weight?: number) => Rule<I, O>;
39
+ export declare const rule: <I extends LVarSet<string>, O extends LVarSet<string>>(op: FnN2, $if: LVarKeySet<I, keyof I>, then: LVarKeySet<O, keyof O>, weight?: number) => Rule<I, O>;
40
+ export declare const and: <I extends LVarSet<string>, O extends LVarSet<string>>($if: LVarKeySet<I, keyof I>, then: LVarKeySet<O, keyof O>, weight?: number) => Rule<I, O>;
41
+ export declare const strongAnd: <I extends LVarSet<string>, O extends LVarSet<string>>($if: LVarKeySet<I, keyof I>, then: LVarKeySet<O, keyof O>, weight?: number) => Rule<I, O>;
42
+ export declare const or: <I extends LVarSet<string>, O extends LVarSet<string>>($if: LVarKeySet<I, keyof I>, then: LVarKeySet<O, keyof O>, weight?: number) => Rule<I, O>;
43
43
  //# sourceMappingURL=rules.d.ts.map
package/var.d.ts CHANGED
@@ -20,7 +20,7 @@ import type { LVar } from "./api.js";
20
20
  * @param domain -
21
21
  * @param terms -
22
22
  */
23
- export declare const variable: <K extends string>(domain: import("@thi.ng/api").Range, terms: import("./api.js").LVarTerms<K>) => LVar<K>;
23
+ export declare const variable: <K extends string>(domain: import("@thi.ng/api/range").Range, terms: LVar<K>["terms"]) => LVar<K>;
24
24
  /**
25
25
  * Takes an LVar and a domain value `x`. Returns the ID of the var's fuzzy set
26
26
  * term which yields the max truth value for given `x`. If `threshold` is