pareto-core-shorthands 0.1.9 → 0.1.10

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.
@@ -7,6 +7,9 @@ export type Raw_Or_Normal_Dictionary<T> = {
7
7
  [key: string]: T;
8
8
  } | _pi.Dictionary<T>;
9
9
  export type Raw_Or_Normal_List<T> = T[] | _pi.List<T>;
10
- export declare const wrap_dictionary: <T>($: Raw_Or_Normal_Dictionary<T>) => _pi.Dictionary<T>;
11
- export declare const wrap_list: <T>($: Raw_Or_Normal_List<T>) => _pi.List<T>;
12
- export declare const wrap_state_group: <T>($: T) => T;
10
+ export declare namespace dictionnary {
11
+ const literal: <T>($: Raw_Or_Normal_Dictionary<T>) => _pi.Dictionary<T>;
12
+ }
13
+ export declare namespace list {
14
+ const literal: <T>($: Raw_Or_Normal_List<T>) => _pi.List<T>;
15
+ }
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.wrap_state_group = exports.wrap_list = exports.wrap_dictionary = exports.optional = void 0;
26
+ exports.list = exports.dictionnary = exports.optional = void 0;
27
27
  const _pinternals = __importStar(require("pareto-core-internals/dist/literal"));
28
28
  var optional;
29
29
  (function (optional) {
@@ -41,7 +41,6 @@ const wrap_dictionary = ($) => {
41
41
  return _pinternals.dictionary.literal($);
42
42
  }
43
43
  };
44
- exports.wrap_dictionary = wrap_dictionary;
45
44
  const wrap_list = ($) => {
46
45
  if ($ instanceof Array) {
47
46
  return _pinternals.list.literal($);
@@ -51,8 +50,11 @@ const wrap_list = ($) => {
51
50
  }
52
51
  return $;
53
52
  };
54
- exports.wrap_list = wrap_list;
55
- const wrap_state_group = ($) => {
56
- return $;
57
- };
58
- exports.wrap_state_group = wrap_state_group;
53
+ var dictionnary;
54
+ (function (dictionnary) {
55
+ dictionnary.literal = wrap_dictionary;
56
+ })(dictionnary || (exports.dictionnary = dictionnary = {}));
57
+ var list;
58
+ (function (list) {
59
+ list.literal = wrap_list;
60
+ })(list || (exports.list = list = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pareto-core-shorthands",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "license": "ISC",
5
5
  "description": "the pareto package used for building datasets",
6
6
  "author": "Corno",
@@ -23,6 +23,6 @@
23
23
  "url": "git+https://github.com/corno/pareto-core-shorthands.git"
24
24
  },
25
25
  "dependencies": {
26
- "pareto-core-internals": "^0.24.27"
26
+ "pareto-core-internals": "^0.24.28"
27
27
  }
28
28
  }