@fncts/test 0.0.22 → 0.0.23

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.
@@ -5,7 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.AssertionIOTypeId = exports.AssertionIO = void 0;
7
7
  exports.isAssertionIO = isAssertionIO;
8
- var _predicates = /*#__PURE__*/require("@fncts/base/util/predicates");
8
+ var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/util/predicates"));
9
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
10
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
11
+ var _a;
9
12
  const AssertionIOTypeId = /*#__PURE__*/Symbol.for("fncts.test.AssertionIO");
10
13
  /**
11
14
  * @tsplus type fncts.test.AssertionIO
@@ -16,14 +19,15 @@ class AssertionIO {
16
19
  constructor(render, runIO) {
17
20
  this.render = render;
18
21
  this.runIO = runIO;
19
- this._typeId = AssertionIOTypeId;
22
+ this[_a] = AssertionIOTypeId;
20
23
  }
21
24
  get rendered() {
22
25
  return this.render.rendered;
23
26
  }
24
27
  }
25
28
  exports.AssertionIO = AssertionIO;
29
+ _a = AssertionIOTypeId;
26
30
  function isAssertionIO(u) {
27
- return (0, _predicates.hasTypeId)(u, AssertionIOTypeId);
31
+ return tsplus_module_1.isObject(u) && AssertionIOTypeId in u;
28
32
  }
29
33
  //# sourceMappingURL=definition.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs","mappings":";;;;;;;AAIA;AAIO,MAAMA,iBAAiB,gBAAGC,MAAM,CAACC,GAAG,CAAC,wBAAwB,CAAC;AAGrE;;;;AAAA;AAIM,MAAOC,WAAW;EAEtBC,YAAqBC,MAAc,EAAWC,KAAuC;IAAhE,WAAM,GAAND,MAAM;IAAmB,UAAK,GAALC,KAAK;IAD1C,YAAO,GAAsBN,iBAAiB;EACiC;EACxF,IAAIO,QAAQ;IACV,OAAO,IAAI,CAACF,MAAM,CAACE,QAAQ;EAC7B;;AACD;AAEK,SAAUC,aAAa,CAACC,CAAU;EACtC,OAAO,yBAAS,EAACA,CAAC,EAAET,iBAAiB,CAAC;AACxC","names":["AssertionIOTypeId","Symbol","for","AssertionIO","constructor","render","runIO","rendered","isAssertionIO","u"],"sourceRoot":"","sources":["../../../_src/control/AssertionIO/definition.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"definition.cjs","mappings":";;;;;;;;;;;AAMO,MAAMA,iBAAiB,gBAAGC,MAAM,CAACC,GAAG,CAAC,wBAAwB,CAAC;AAGrE;;;;AAAA;AAIM,MAAOC,WAAW;EAEtBC,YAAqBC,MAAc,EAAWC,KAAuC;IAAhE,WAAM,GAAND,MAAM;IAAmB,UAAK,GAALC,KAAK;IAD1C,QAAmB,GAAsBN,iBAAiB;EACqB;EACxF,IAAIO,QAAQ;IACV,OAAO,IAAI,CAACF,MAAM,CAACE,QAAQ;EAC7B;;AACD;KALWP,iBAAiB;AAOvB,SAAUQ,aAAa,CAACC,CAAU;EACtC,OAAOC,wBAAQ,CAACD,CAAC,CAAC,IAAIT,iBAAiB,IAAIS,CAAC;AAC9C","names":["AssertionIOTypeId","Symbol","for","AssertionIO","constructor","render","runIO","rendered","isAssertionIO","u","tsplus_module_1"],"sourceRoot":"","sources":["../../../_src/control/AssertionIO/definition.ts"],"sourcesContent":[null]}
@@ -9,6 +9,7 @@ var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require
9
9
  var _AssertionValue = /*#__PURE__*/require("./AssertionValue.cjs");
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
+ var _a;
12
13
  const asSuccess = asSuccess_1;
13
14
  exports.asSuccess = asSuccess;
14
15
  const asFailure = asFailure_1;
@@ -22,13 +23,14 @@ class AssertionData {
22
23
  constructor(value, assertion) {
23
24
  this.value = value;
24
25
  this.assertion = assertion;
25
- this._typeId = AssertionDataTypeId;
26
+ this[_a] = AssertionDataTypeId;
26
27
  }
27
28
  }
29
+ exports.AssertionData = AssertionData;
30
+ _a = AssertionDataTypeId;
28
31
  /**
29
32
  * @tsplus getter fncts.test.data.AssertionData asSuccess
30
33
  */
31
- exports.AssertionData = AssertionData;
32
34
  function asSuccess_1(self) {
33
35
  return tsplus_module_2.success(new _AssertionValue.AssertionValue(tsplus_module_1.lazy(() => self.assertion), self.value, tsplus_module_1.lazy(() => asSuccess_1(self))));
34
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AssertionData.cjs","mappings":";;;;;;;;AAEA;AAAqD;AAAA;MAiBrCA,SAAS;AAAA;MASTC,SAAS;AAAA;AAvBlB,MAAMC,mBAAmB,gBAAGC,MAAM,CAACC,GAAG,CAAC,+BAA+B,CAAC;AAG9E;;;AAAA;AAGM,MAAOC,aAAa;EAExBC,YAAqBC,KAAQ,EAAWC,SAAuB;IAA1C,UAAK,GAALD,KAAK;IAAc,cAAS,GAATC,SAAS;IADxC,YAAO,GAAwBN,mBAAmB;EACO;;AAGpE;;;AAAA;AAGA,qBAA6BO,IAAsB;EACjD,OAAOC,wBACL,IAAIC,8BAAc,CAACC,2BAAUH,IAAI,CAACD,SAAS,CAAC,EAAEC,IAAI,CAACF,KAAK,EAAEK,uCAAUH,IAAI,EAAW,CAAC,CACrF;AACH;AAEA;;;AAGA,qBAA6BA,IAAsB;EACjD,OAAOC,wBACL,IAAIC,8BAAc,CAACC,2BAAUH,IAAI,CAACD,SAAS,CAAC,EAAEC,IAAI,CAACF,KAAK,EAAEK,uCAAUH,IAAI,EAAW,CAAC,CACrF;AACH","names":["asSuccess","asFailure","AssertionDataTypeId","Symbol","for","AssertionData","constructor","value","assertion","self","tsplus_module_2","AssertionValue","tsplus_module_1"],"sourceRoot":"","sources":["../../_src/data/AssertionData.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"AssertionData.cjs","mappings":";;;;;;;;AAEA;AAAqD;AAAA;;MAiBrCA,SAAS;AAAA;MASTC,SAAS;AAAA;AAvBlB,MAAMC,mBAAmB,gBAAGC,MAAM,CAACC,GAAG,CAAC,+BAA+B,CAAC;AAG9E;;;AAAA;AAGM,MAAOC,aAAa;EAExBC,YAAqBC,KAAQ,EAAWC,SAAuB;IAA1C,UAAK,GAALD,KAAK;IAAc,cAAS,GAATC,SAAS;IADxC,QAAqB,GAAwBN,mBAAmB;EACP;;AACnE;KAFWA,mBAAmB;AAI/B;;;AAGA,qBAA6BO,IAAsB;EACjD,OAAOC,wBACL,IAAIC,8BAAc,CAACC,2BAAUH,IAAI,CAACD,SAAS,CAAC,EAAEC,IAAI,CAACF,KAAK,EAAEK,uCAAUH,IAAI,EAAW,CAAC,CACrF;AACH;AAEA;;;AAGA,qBAA6BA,IAAsB;EACjD,OAAOC,wBACL,IAAIC,8BAAc,CAACC,2BAAUH,IAAI,CAACD,SAAS,CAAC,EAAEC,IAAI,CAACF,KAAK,EAAEK,uCAAUH,IAAI,EAAW,CAAC,CACrF;AACH","names":["asSuccess","asFailure","AssertionDataTypeId","Symbol","for","AssertionData","constructor","value","assertion","self","tsplus_module_2","AssertionValue","tsplus_module_1"],"sourceRoot":"","sources":["../../_src/data/AssertionData.ts"],"sourcesContent":[null]}
@@ -7,6 +7,7 @@ exports.AssertionValueTypeId = exports.AssertionValue = void 0;
7
7
  var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/constructors"));
8
8
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
9
9
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
10
+ var _a;
10
11
  const AssertionValueTypeId = /*#__PURE__*/Symbol.for("fncts.test.data.AssertionValue");
11
12
  /**
12
13
  * @tsplus type fncts.test.data.AssertionValue
@@ -20,8 +21,9 @@ class AssertionValue {
20
21
  this.result = result;
21
22
  this.expression = expression;
22
23
  this.sourceLocation = sourceLocation;
23
- this._typeId = AssertionValueTypeId;
24
+ this[_a] = AssertionValueTypeId;
24
25
  }
25
26
  }
26
27
  exports.AssertionValue = AssertionValue;
28
+ _a = AssertionValueTypeId;
27
29
  //# sourceMappingURL=definition.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs","mappings":";;;;;;;;;AAEO,MAAMA,oBAAoB,gBAAGC,MAAM,CAACC,GAAG,CAAC,gCAAgC,CAAC;AAGhF;;;;AAAA;AAIM,MAAOC,cAAc;EAEzBC,YACWC,SAAoC,EACpCC,KAAQ,EACRC,MAAwD,EACxDC,aAA4BC,yBAAS,EACrCC,iBAAgCD,yBAAS;IAJzC,cAAS,GAATJ,SAAS;IACT,UAAK,GAALC,KAAK;IACL,WAAM,GAANC,MAAM;IACN,eAAU,GAAVC,UAAU;IACV,mBAAc,GAAdE,cAAc;IANhB,YAAO,GAAyBV,oBAAoB;EAO1D;;AACJ","names":["AssertionValueTypeId","Symbol","for","AssertionValue","constructor","assertion","value","result","expression","tsplus_module_1","sourceLocation"],"sourceRoot":"","sources":["../../../_src/data/AssertionValue/definition.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"definition.cjs","mappings":";;;;;;;;;;AAEO,MAAMA,oBAAoB,gBAAGC,MAAM,CAACC,GAAG,CAAC,gCAAgC,CAAC;AAGhF;;;;AAAA;AAIM,MAAOC,cAAc;EAEzBC,YACWC,SAAoC,EACpCC,KAAQ,EACRC,MAAwD,EACxDC,aAA4BC,yBAAS,EACrCC,iBAAgCD,yBAAS;IAJzC,cAAS,GAATJ,SAAS;IACT,UAAK,GAALC,KAAK;IACL,WAAM,GAANC,MAAM;IACN,eAAU,GAAVC,UAAU;IACV,mBAAc,GAAdE,cAAc;IANhB,QAAsB,GAAyBV,oBAAoB;EAOzE;;AACJ;KARWA,oBAAoB","names":["AssertionValueTypeId","Symbol","for","AssertionValue","constructor","assertion","value","result","expression","tsplus_module_1","sourceLocation"],"sourceRoot":"","sources":["../../../_src/data/AssertionValue/definition.ts"],"sourcesContent":[null]}
@@ -3,15 +3,18 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.TestAnnotationTypeId = exports.TestAnnotation = void 0;
6
+ exports.TestAnnotationVariance = exports.TestAnnotationTypeId = exports.TestAnnotation = void 0;
7
7
  exports.isTestAnnotation = isTestAnnotation;
8
8
  var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Hashable/definition"));
9
9
  var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Hashable/hash"));
10
10
  var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Equatable/definition"));
11
11
  var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Equatable/api"));
12
- var _predicates = /*#__PURE__*/require("@fncts/base/util/predicates");
12
+ var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/util/predicates"));
13
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+ var _a;
16
+ const TestAnnotationVariance = /*#__PURE__*/Symbol.for("fncts.test.TestAnnotation.Variance");
17
+ exports.TestAnnotationVariance = TestAnnotationVariance;
15
18
  const TestAnnotationTypeId = /*#__PURE__*/Symbol.for("fncts.test.TestAnnotation");
16
19
  /**
17
20
  * @tsplus type fncts.test.TestAnnotation
@@ -24,9 +27,9 @@ class TestAnnotation {
24
27
  this.identifier = identifier;
25
28
  this.initial = initial;
26
29
  this.combine = combine;
27
- this._typeId = TestAnnotationTypeId;
30
+ this[_a] = TestAnnotationTypeId;
28
31
  }
29
- get [tsplus_module_1.hashSymbol]() {
32
+ get [(_a = TestAnnotationTypeId, tsplus_module_1.hashSymbol)]() {
30
33
  return tsplus_module_2.combineHash(tsplus_module_2.hashString(this.identifier), tsplus_module_2.hashUnknown(this.tag));
31
34
  }
32
35
  [tsplus_module_3.equalsSymbol](that) {
@@ -35,6 +38,6 @@ class TestAnnotation {
35
38
  }
36
39
  exports.TestAnnotation = TestAnnotation;
37
40
  function isTestAnnotation(u) {
38
- return (0, _predicates.hasTypeId)(u, TestAnnotationTypeId);
41
+ return tsplus_module_5.isObject(u) && TestAnnotationTypeId in u;
39
42
  }
40
43
  //# sourceMappingURL=definition.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs","mappings":";;;;;;;;;;;AAAA;AAAwD;AAAA;AAEjD,MAAMA,oBAAoB,gBAAGC,MAAM,CAACC,GAAG,CAAC,2BAA2B,CAAC;AAG3E;;;;AAAA;AAIM,MAAOC,cAAc;EAGzBC,YACWC,GAAW,EACXC,UAAkB,EAClBC,OAAU,EACVC,OAA4B;IAH5B,QAAG,GAAHH,GAAG;IACH,eAAU,GAAVC,UAAU;IACV,YAAO,GAAPC,OAAO;IACP,YAAO,GAAPC,OAAO;IANT,YAAO,GAAyBR,oBAAoB;EAO1D;EACH,KAAIS,8BAAa;IACf,OAAOC,4BAAiBA,2BAAgB,IAAI,CAACJ,UAAU,CAAC,EAAEI,4BAAiB,IAAI,CAACL,GAAG,CAAC,CAAC;EACvF;EACA,+BAAgBM,IAAa;IAC3B,OACEC,gBAAgB,CAACD,IAAI,CAAC,IACtBE,6BAAuB,IAAI,CAACR,GAAG,EAAEM,IAAI,CAACN,GAAG,CAAC,IAC1C,IAAI,CAACC,UAAU,KAAKK,IAAI,CAACL,UAAU,IACnCO,6BAAuB,IAAI,CAACN,OAAO,EAAEI,IAAI,CAACJ,OAAO,CAAC;EAEtD;;AACD;AAEK,SAAUK,gBAAgB,CAACE,CAAU;EACzC,OAAO,yBAAS,EAACA,CAAC,EAAEd,oBAAoB,CAAC;AAC3C","names":["TestAnnotationTypeId","Symbol","for","TestAnnotation","constructor","tag","identifier","initial","combine","tsplus_module_1","tsplus_module_2","that","isTestAnnotation","tsplus_module_4","u"],"sourceRoot":"","sources":["../../../_src/data/TestAnnotation/definition.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"definition.cjs","mappings":";;;;;;;;;;;;;;;AAAO,MAAMA,sBAAsB,gBAAGC,MAAM,CAACC,GAAG,CAAC,oCAAoC,CAAC;AAAC;AAGhF,MAAMC,oBAAoB,gBAAGF,MAAM,CAACC,GAAG,CAAC,2BAA2B,CAAC;AAG3E;;;;AAAA;AAIM,MAAOE,cAAc;EAKzBC,YACWC,GAAW,EACXC,UAAkB,EAClBC,OAAU,EACVC,OAA4B;IAH5B,QAAG,GAAHH,GAAG;IACH,eAAU,GAAVC,UAAU;IACV,YAAO,GAAPC,OAAO;IACP,YAAO,GAAPC,OAAO;IART,QAAsB,GAAyBN,oBAAoB;EASzE;EACH,MAAIO,KAVMP,oBAAoB,iCAUb;IACf,OAAOQ,4BAAiBA,2BAAgB,IAAI,CAACJ,UAAU,CAAC,EAAEI,4BAAiB,IAAI,CAACL,GAAG,CAAC,CAAC;EACvF;EACA,+BAAgBM,IAAa;IAC3B,OACEC,gBAAgB,CAACD,IAAI,CAAC,IACtBE,6BAAuB,IAAI,CAACR,GAAG,EAAEM,IAAI,CAACN,GAAG,CAAC,IAC1C,IAAI,CAACC,UAAU,KAAKK,IAAI,CAACL,UAAU,IACnCO,6BAAuB,IAAI,CAACN,OAAO,EAAEI,IAAI,CAACJ,OAAO,CAAC;EAEtD;;AACD;AAEK,SAAUK,gBAAgB,CAACE,CAAU;EACzC,OAAOC,wBAAQ,CAACD,CAAC,CAAC,IAAIZ,oBAAoB,IAAIY,CAAC;AACjD","names":["TestAnnotationVariance","Symbol","for","TestAnnotationTypeId","TestAnnotation","constructor","tag","identifier","initial","combine","_a","tsplus_module_2","that","isTestAnnotation","tsplus_module_4","u","tsplus_module_5"],"sourceRoot":"","sources":["../../../_src/data/TestAnnotation/definition.ts"],"sourcesContent":[null]}
@@ -1,4 +1,5 @@
1
- import { hasTypeId } from "@fncts/base/util/predicates";
1
+ var _a;
2
+ import * as tsplus_module_1 from "@fncts/base/util/predicates";
2
3
  export const AssertionIOTypeId = /*#__PURE__*/Symbol.for("fncts.test.AssertionIO");
3
4
  /**
4
5
  * @tsplus type fncts.test.AssertionIO
@@ -8,13 +9,14 @@ export class AssertionIO {
8
9
  constructor(render, runIO) {
9
10
  this.render = render;
10
11
  this.runIO = runIO;
11
- this._typeId = AssertionIOTypeId;
12
+ this[_a] = AssertionIOTypeId;
12
13
  }
13
14
  get rendered() {
14
15
  return this.render.rendered;
15
16
  }
16
17
  }
18
+ _a = AssertionIOTypeId;
17
19
  export function isAssertionIO(u) {
18
- return hasTypeId(u, AssertionIOTypeId);
20
+ return tsplus_module_1.isObject(u) && AssertionIOTypeId in u;
19
21
  }
20
22
  //# sourceMappingURL=definition.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.mjs","mappings":"AAIA,SAASA,SAAS,QAAQ,6BAA6B;AAIvD,OAAO,MAAMC,iBAAiB,gBAAGC,MAAM,CAACC,GAAG,CAAC,wBAAwB,CAAC;AAGrE;;;;AAIA,OAAM,MAAOC,WAAW;EAEtBC,YAAqBC,MAAc,EAAWC,KAAuC;IAAhE,WAAM,GAAND,MAAM;IAAmB,UAAK,GAALC,KAAK;IAD1C,YAAO,GAAsBN,iBAAiB;EACiC;EACxF,IAAIO,QAAQ;IACV,OAAO,IAAI,CAACF,MAAM,CAACE,QAAQ;EAC7B;;AAGF,OAAM,SAAUC,aAAa,CAACC,CAAU;EACtC,OAAOV,SAAS,CAACU,CAAC,EAAET,iBAAiB,CAAC;AACxC","names":["hasTypeId","AssertionIOTypeId","Symbol","for","AssertionIO","constructor","render","runIO","rendered","isAssertionIO","u"],"sourceRoot":"","sources":["../../../_src/control/AssertionIO/definition.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"definition.mjs","mappings":";;AAMA,OAAO,MAAMA,iBAAiB,gBAAGC,MAAM,CAACC,GAAG,CAAC,wBAAwB,CAAC;AAGrE;;;;AAIA,OAAM,MAAOC,WAAW;EAEtBC,YAAqBC,MAAc,EAAWC,KAAuC;IAAhE,WAAM,GAAND,MAAM;IAAmB,UAAK,GAALC,KAAK;IAD1C,QAAmB,GAAsBN,iBAAiB;EACqB;EACxF,IAAIO,QAAQ;IACV,OAAO,IAAI,CAACF,MAAM,CAACE,QAAQ;EAC7B;;KAJUP,iBAAiB;AAO7B,OAAM,SAAUQ,aAAa,CAACC,CAAU;EACtC,OAAOC,wBAAQ,CAACD,CAAC,CAAC,IAAIT,iBAAiB,IAAIS,CAAC;AAC9C","names":["AssertionIOTypeId","Symbol","for","AssertionIO","constructor","render","runIO","rendered","isAssertionIO","u","tsplus_module_1"],"sourceRoot":"","sources":["../../../_src/control/AssertionIO/definition.ts"],"sourcesContent":[null]}
@@ -1,3 +1,4 @@
1
+ var _a;
1
2
  import * as tsplus_module_1 from "@fncts/base/control/LazyValue";
2
3
  import * as tsplus_module_2 from "@fncts/test/data/FreeBooleanAlgebra/api";
3
4
  export const asSuccess = asSuccess_1;
@@ -11,9 +12,10 @@ export class AssertionData {
11
12
  constructor(value, assertion) {
12
13
  this.value = value;
13
14
  this.assertion = assertion;
14
- this._typeId = AssertionDataTypeId;
15
+ this[_a] = AssertionDataTypeId;
15
16
  }
16
17
  }
18
+ _a = AssertionDataTypeId;
17
19
  /**
18
20
  * @tsplus getter fncts.test.data.AssertionData asSuccess
19
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"AssertionData.mjs","mappings":";;aAmBgBA,SAAS;aASTC,SAAS;AA1BzB,SAASC,cAAc,QAAQ,sBAAqB;AAGpD,OAAO,MAAMC,mBAAmB,gBAAGC,MAAM,CAACC,GAAG,CAAC,+BAA+B,CAAC;AAG9E;;;AAGA,OAAM,MAAOC,aAAa;EAExBC,YAAqBC,KAAQ,EAAWC,SAAuB;IAA1C,UAAK,GAALD,KAAK;IAAc,cAAS,GAATC,SAAS;IADxC,YAAO,GAAwBN,mBAAmB;EACO;;AAGpE;;;AAGA,qBAA6BO,IAAsB;EACjD,OAAOC,wBACL,IAAIT,cAAc,CAACU,2BAAUF,IAAI,CAACD,SAAS,CAAC,EAAEC,IAAI,CAACF,KAAK,EAAEI,uCAAUF,IAAI,EAAW,CAAC,CACrF;AACH;AAEA;;;AAGA,qBAA6BA,IAAsB;EACjD,OAAOC,wBACL,IAAIT,cAAc,CAACU,2BAAUF,IAAI,CAACD,SAAS,CAAC,EAAEC,IAAI,CAACF,KAAK,EAAEI,uCAAUF,IAAI,EAAW,CAAC,CACrF;AACH","names":["asSuccess","asFailure","AssertionValue","AssertionDataTypeId","Symbol","for","AssertionData","constructor","value","assertion","self","tsplus_module_2","tsplus_module_1"],"sourceRoot":"","sources":["../../_src/data/AssertionData.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"AssertionData.mjs","mappings":";;;aAmBgBA,SAAS;aASTC,SAAS;AA1BzB,SAASC,cAAc,QAAQ,sBAAqB;AAGpD,OAAO,MAAMC,mBAAmB,gBAAGC,MAAM,CAACC,GAAG,CAAC,+BAA+B,CAAC;AAG9E;;;AAGA,OAAM,MAAOC,aAAa;EAExBC,YAAqBC,KAAQ,EAAWC,SAAuB;IAA1C,UAAK,GAALD,KAAK;IAAc,cAAS,GAATC,SAAS;IADxC,QAAqB,GAAwBN,mBAAmB;EACP;;KADxDA,mBAAmB;AAI/B;;;AAGA,qBAA6BO,IAAsB;EACjD,OAAOC,wBACL,IAAIT,cAAc,CAACU,2BAAUF,IAAI,CAACD,SAAS,CAAC,EAAEC,IAAI,CAACF,KAAK,EAAEI,uCAAUF,IAAI,EAAW,CAAC,CACrF;AACH;AAEA;;;AAGA,qBAA6BA,IAAsB;EACjD,OAAOC,wBACL,IAAIT,cAAc,CAACU,2BAAUF,IAAI,CAACD,SAAS,CAAC,EAAEC,IAAI,CAACF,KAAK,EAAEI,uCAAUF,IAAI,EAAW,CAAC,CACrF;AACH","names":["asSuccess","asFailure","AssertionValue","AssertionDataTypeId","Symbol","for","AssertionData","constructor","value","assertion","self","tsplus_module_2","tsplus_module_1"],"sourceRoot":"","sources":["../../_src/data/AssertionData.ts"],"sourcesContent":[null]}
@@ -1,3 +1,4 @@
1
+ var _a;
1
2
  import * as tsplus_module_1 from "@fncts/base/data/Maybe/constructors";
2
3
  export const AssertionValueTypeId = /*#__PURE__*/Symbol.for("fncts.test.data.AssertionValue");
3
4
  /**
@@ -11,7 +12,8 @@ export class AssertionValue {
11
12
  this.result = result;
12
13
  this.expression = expression;
13
14
  this.sourceLocation = sourceLocation;
14
- this._typeId = AssertionValueTypeId;
15
+ this[_a] = AssertionValueTypeId;
15
16
  }
16
17
  }
18
+ _a = AssertionValueTypeId;
17
19
  //# sourceMappingURL=definition.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.mjs","mappings":";AAEA,OAAO,MAAMA,oBAAoB,gBAAGC,MAAM,CAACC,GAAG,CAAC,gCAAgC,CAAC;AAGhF;;;;AAIA,OAAM,MAAOC,cAAc;EAEzBC,YACWC,SAAoC,EACpCC,KAAQ,EACRC,MAAwD,EACxDC,aAA4BC,yBAAS,EACrCC,iBAAgCD,yBAAS;IAJzC,cAAS,GAATJ,SAAS;IACT,UAAK,GAALC,KAAK;IACL,WAAM,GAANC,MAAM;IACN,eAAU,GAAVC,UAAU;IACV,mBAAc,GAAdE,cAAc;IANhB,YAAO,GAAyBV,oBAAoB;EAO1D","names":["AssertionValueTypeId","Symbol","for","AssertionValue","constructor","assertion","value","result","expression","tsplus_module_1","sourceLocation"],"sourceRoot":"","sources":["../../../_src/data/AssertionValue/definition.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"definition.mjs","mappings":";;AAEA,OAAO,MAAMA,oBAAoB,gBAAGC,MAAM,CAACC,GAAG,CAAC,gCAAgC,CAAC;AAGhF;;;;AAIA,OAAM,MAAOC,cAAc;EAEzBC,YACWC,SAAoC,EACpCC,KAAQ,EACRC,MAAwD,EACxDC,aAA4BC,yBAAS,EACrCC,iBAAgCD,yBAAS;IAJzC,cAAS,GAATJ,SAAS;IACT,UAAK,GAALC,KAAK;IACL,WAAM,GAANC,MAAM;IACN,eAAU,GAAVC,UAAU;IACV,mBAAc,GAAdE,cAAc;IANhB,QAAsB,GAAyBV,oBAAoB;EAOzE;;KAPOA,oBAAoB","names":["AssertionValueTypeId","Symbol","for","AssertionValue","constructor","assertion","value","result","expression","tsplus_module_1","sourceLocation"],"sourceRoot":"","sources":["../../../_src/data/AssertionValue/definition.ts"],"sourcesContent":[null]}
@@ -1,8 +1,10 @@
1
+ var _a;
1
2
  import * as tsplus_module_1 from "@fncts/base/data/Hashable/definition";
2
3
  import * as tsplus_module_2 from "@fncts/base/data/Hashable/hash";
3
4
  import * as tsplus_module_3 from "@fncts/base/data/Equatable/definition";
4
5
  import * as tsplus_module_4 from "@fncts/base/data/Equatable/api";
5
- import { hasTypeId } from "@fncts/base/util/predicates";
6
+ import * as tsplus_module_5 from "@fncts/base/util/predicates";
7
+ export const TestAnnotationVariance = /*#__PURE__*/Symbol.for("fncts.test.TestAnnotation.Variance");
6
8
  export const TestAnnotationTypeId = /*#__PURE__*/Symbol.for("fncts.test.TestAnnotation");
7
9
  /**
8
10
  * @tsplus type fncts.test.TestAnnotation
@@ -14,9 +16,9 @@ export class TestAnnotation {
14
16
  this.identifier = identifier;
15
17
  this.initial = initial;
16
18
  this.combine = combine;
17
- this._typeId = TestAnnotationTypeId;
19
+ this[_a] = TestAnnotationTypeId;
18
20
  }
19
- get [tsplus_module_1.hashSymbol]() {
21
+ get [(_a = TestAnnotationTypeId, tsplus_module_1.hashSymbol)]() {
20
22
  return tsplus_module_2.combineHash(tsplus_module_2.hashString(this.identifier), tsplus_module_2.hashUnknown(this.tag));
21
23
  }
22
24
  [tsplus_module_3.equalsSymbol](that) {
@@ -24,6 +26,6 @@ export class TestAnnotation {
24
26
  }
25
27
  }
26
28
  export function isTestAnnotation(u) {
27
- return hasTypeId(u, TestAnnotationTypeId);
29
+ return tsplus_module_5.isObject(u) && TestAnnotationTypeId in u;
28
30
  }
29
31
  //# sourceMappingURL=definition.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.mjs","mappings":";;;;AAAA,SAASA,SAAS,QAAQ,6BAA6B;AAEvD,OAAO,MAAMC,oBAAoB,gBAAGC,MAAM,CAACC,GAAG,CAAC,2BAA2B,CAAC;AAG3E;;;;AAIA,OAAM,MAAOC,cAAc;EAGzBC,YACWC,GAAW,EACXC,UAAkB,EAClBC,OAAU,EACVC,OAA4B;IAH5B,QAAG,GAAHH,GAAG;IACH,eAAU,GAAVC,UAAU;IACV,YAAO,GAAPC,OAAO;IACP,YAAO,GAAPC,OAAO;IANT,YAAO,GAAyBR,oBAAoB;EAO1D;EACH,KAAIS,8BAAa;IACf,OAAOC,4BAAiBA,2BAAgB,IAAI,CAACJ,UAAU,CAAC,EAAEI,4BAAiB,IAAI,CAACL,GAAG,CAAC,CAAC;EACvF;EACA,+BAAgBM,IAAa;IAC3B,OACEC,gBAAgB,CAACD,IAAI,CAAC,IACtBE,6BAAuB,IAAI,CAACR,GAAG,EAAEM,IAAI,CAACN,GAAG,CAAC,IAC1C,IAAI,CAACC,UAAU,KAAKK,IAAI,CAACL,UAAU,IACnCO,6BAAuB,IAAI,CAACN,OAAO,EAAEI,IAAI,CAACJ,OAAO,CAAC;EAEtD;;AAGF,OAAM,SAAUK,gBAAgB,CAACE,CAAU;EACzC,OAAOf,SAAS,CAACe,CAAC,EAAEd,oBAAoB,CAAC;AAC3C","names":["hasTypeId","TestAnnotationTypeId","Symbol","for","TestAnnotation","constructor","tag","identifier","initial","combine","tsplus_module_1","tsplus_module_2","that","isTestAnnotation","tsplus_module_4","u"],"sourceRoot":"","sources":["../../../_src/data/TestAnnotation/definition.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"definition.mjs","mappings":";;;;;;AAAA,OAAO,MAAMA,sBAAsB,gBAAGC,MAAM,CAACC,GAAG,CAAC,oCAAoC,CAAC;AAGtF,OAAO,MAAMC,oBAAoB,gBAAGF,MAAM,CAACC,GAAG,CAAC,2BAA2B,CAAC;AAG3E;;;;AAIA,OAAM,MAAOE,cAAc;EAKzBC,YACWC,GAAW,EACXC,UAAkB,EAClBC,OAAU,EACVC,OAA4B;IAH5B,QAAG,GAAHH,GAAG;IACH,eAAU,GAAVC,UAAU;IACV,YAAO,GAAPC,OAAO;IACP,YAAO,GAAPC,OAAO;IART,QAAsB,GAAyBN,oBAAoB;EASzE;EACH,MAAIO,KAVMP,oBAAoB,iCAUb;IACf,OAAOQ,4BAAiBA,2BAAgB,IAAI,CAACJ,UAAU,CAAC,EAAEI,4BAAiB,IAAI,CAACL,GAAG,CAAC,CAAC;EACvF;EACA,+BAAgBM,IAAa;IAC3B,OACEC,gBAAgB,CAACD,IAAI,CAAC,IACtBE,6BAAuB,IAAI,CAACR,GAAG,EAAEM,IAAI,CAACN,GAAG,CAAC,IAC1C,IAAI,CAACC,UAAU,KAAKK,IAAI,CAACL,UAAU,IACnCO,6BAAuB,IAAI,CAACN,OAAO,EAAEI,IAAI,CAACJ,OAAO,CAAC;EAEtD;;AAGF,OAAM,SAAUK,gBAAgB,CAACE,CAAU;EACzC,OAAOC,wBAAQ,CAACD,CAAC,CAAC,IAAIZ,oBAAoB,IAAIY,CAAC;AACjD","names":["TestAnnotationVariance","Symbol","for","TestAnnotationTypeId","TestAnnotation","constructor","tag","identifier","initial","combine","_a","tsplus_module_2","that","isTestAnnotation","tsplus_module_4","u","tsplus_module_5"],"sourceRoot":"","sources":["../../../_src/data/TestAnnotation/definition.ts"],"sourcesContent":[null]}
@@ -2,8 +2,6 @@ import type { AssertionValue } from "../../data/AssertionValue.js";
2
2
  import type { Render } from "../../data/Render.js";
3
3
  import type { FreeBooleanAlgebraIO } from "../FreeBooleanAlgebraIO.js";
4
4
 
5
- import { hasTypeId } from "@fncts/base/util/predicates";
6
-
7
5
  export type AssertResultIO<A> = FreeBooleanAlgebraIO<never, never, AssertionValue<A>>;
8
6
 
9
7
  export const AssertionIOTypeId = Symbol.for("fncts.test.AssertionIO");
@@ -14,7 +12,7 @@ export type AssertionIOTypeId = typeof AssertionIOTypeId;
14
12
  * @tsplus companion fncts.test.AssertionIOOps
15
13
  */
16
14
  export class AssertionIO<A> {
17
- readonly _typeId: AssertionIOTypeId = AssertionIOTypeId;
15
+ readonly [AssertionIOTypeId]: AssertionIOTypeId = AssertionIOTypeId;
18
16
  constructor(readonly render: Render, readonly runIO: (actual: A) => AssertResultIO<A>) {}
19
17
  get rendered() {
20
18
  return this.render.rendered;
@@ -22,5 +20,5 @@ export class AssertionIO<A> {
22
20
  }
23
21
 
24
22
  export function isAssertionIO(u: unknown): u is AssertionIO<unknown> {
25
- return hasTypeId(u, AssertionIOTypeId);
23
+ return isObject(u) && AssertionIOTypeId in u;
26
24
  }
@@ -10,7 +10,7 @@ export type AssertionDataTypeId = typeof AssertionDataTypeId;
10
10
  * @tsplus type fncts.test.data.AssertionData
11
11
  */
12
12
  export class AssertionData<A> {
13
- readonly _typeId: AssertionDataTypeId = AssertionDataTypeId;
13
+ readonly [AssertionDataTypeId]: AssertionDataTypeId = AssertionDataTypeId;
14
14
  constructor(readonly value: A, readonly assertion: Assertion<A>) {}
15
15
  }
16
16
 
@@ -8,7 +8,7 @@ export type AssertionValueTypeId = typeof AssertionValueTypeId;
8
8
  * @tsplus companion fncts.test.data.AssertionValueOps
9
9
  */
10
10
  export class AssertionValue<A> {
11
- readonly _typeId: AssertionValueTypeId = AssertionValueTypeId;
11
+ readonly [AssertionValueTypeId]: AssertionValueTypeId = AssertionValueTypeId;
12
12
  constructor(
13
13
  readonly assertion: LazyValue<AssertionIO<A>>,
14
14
  readonly value: A,
@@ -1,4 +1,5 @@
1
- import { hasTypeId } from "@fncts/base/util/predicates";
1
+ export const TestAnnotationVariance = Symbol.for("fncts.test.TestAnnotation.Variance");
2
+ export type TestAnnotationVariance = typeof TestAnnotationVariance;
2
3
 
3
4
  export const TestAnnotationTypeId = Symbol.for("fncts.test.TestAnnotation");
4
5
  export type TestAnnotationTypeId = typeof TestAnnotationTypeId;
@@ -8,8 +9,10 @@ export type TestAnnotationTypeId = typeof TestAnnotationTypeId;
8
9
  * @tsplus companion fncts.test.TestAnnotationOps
9
10
  */
10
11
  export class TestAnnotation<V> implements Hashable, Equatable {
11
- readonly _typeId: TestAnnotationTypeId = TestAnnotationTypeId;
12
- readonly _V!: () => V;
12
+ readonly [TestAnnotationTypeId]: TestAnnotationTypeId = TestAnnotationTypeId;
13
+ declare [TestAnnotationVariance]: {
14
+ readonly _V: (_: never) => V;
15
+ };
13
16
  constructor(
14
17
  readonly tag: Tag<V>,
15
18
  readonly identifier: string,
@@ -30,5 +33,5 @@ export class TestAnnotation<V> implements Hashable, Equatable {
30
33
  }
31
34
 
32
35
  export function isTestAnnotation(u: unknown): u is TestAnnotation<unknown> {
33
- return hasTypeId(u, TestAnnotationTypeId);
36
+ return isObject(u) && TestAnnotationTypeId in u;
34
37
  }
@@ -11,7 +11,7 @@ export type AssertionIOTypeId = typeof AssertionIOTypeId;
11
11
  export declare class AssertionIO<A> {
12
12
  readonly render: Render;
13
13
  readonly runIO: (actual: A) => AssertResultIO<A>;
14
- readonly _typeId: AssertionIOTypeId;
14
+ readonly [AssertionIOTypeId]: AssertionIOTypeId;
15
15
  constructor(render: Render, runIO: (actual: A) => AssertResultIO<A>);
16
16
  get rendered(): string;
17
17
  }
@@ -9,7 +9,7 @@ export type AssertionDataTypeId = typeof AssertionDataTypeId;
9
9
  export declare class AssertionData<A> {
10
10
  readonly value: A;
11
11
  readonly assertion: Assertion<A>;
12
- readonly _typeId: AssertionDataTypeId;
12
+ readonly [AssertionDataTypeId]: AssertionDataTypeId;
13
13
  constructor(value: A, assertion: Assertion<A>);
14
14
  }
15
15
  /**
@@ -14,6 +14,6 @@ export declare class AssertionValue<A> {
14
14
  readonly result: LazyValue<FreeBooleanAlgebra<AssertionValue<A>>>;
15
15
  readonly expression: Maybe<string>;
16
16
  readonly sourceLocation: Maybe<string>;
17
- readonly _typeId: AssertionValueTypeId;
17
+ readonly [AssertionValueTypeId]: AssertionValueTypeId;
18
18
  constructor(assertion: LazyValue<AssertionIO<A>>, value: A, result: LazyValue<FreeBooleanAlgebra<AssertionValue<A>>>, expression?: Maybe<string>, sourceLocation?: Maybe<string>);
19
19
  }
@@ -1,6 +1,8 @@
1
1
  import { Hashable } from "@fncts/base/data/Hashable";
2
2
  import { Equatable } from "@fncts/base/data/Equatable";
3
3
  import { Tag } from "@fncts/base/data/Tag/definition";
4
+ export declare const TestAnnotationVariance: unique symbol;
5
+ export type TestAnnotationVariance = typeof TestAnnotationVariance;
4
6
  export declare const TestAnnotationTypeId: unique symbol;
5
7
  export type TestAnnotationTypeId = typeof TestAnnotationTypeId;
6
8
  /**
@@ -12,8 +14,10 @@ export declare class TestAnnotation<V> implements Hashable, Equatable {
12
14
  readonly identifier: string;
13
15
  readonly initial: V;
14
16
  readonly combine: (v1: V, v2: V) => V;
15
- readonly _typeId: TestAnnotationTypeId;
16
- readonly _V: () => V;
17
+ readonly [TestAnnotationTypeId]: TestAnnotationTypeId;
18
+ [TestAnnotationVariance]: {
19
+ readonly _V: (_: never) => V;
20
+ };
17
21
  constructor(tag: Tag<V>, identifier: string, initial: V, combine: (v1: V, v2: V) => V);
18
22
  get [Symbol.hash](): number;
19
23
  [Symbol.equals](that: unknown): boolean;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@fncts/test",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "dependencies": {
5
- "@fncts/base": "0.0.22",
6
- "@fncts/io": "0.0.22",
5
+ "@fncts/base": "0.0.23",
6
+ "@fncts/io": "0.0.23",
7
7
  "@fncts/typelevel": "0.0.15"
8
8
  },
9
9
  "exports": {