@bemedev/typings 1.1.1 → 1.1.2

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/lib/index.cjs CHANGED
@@ -1,17 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_constants = require("./constants.cjs");
3
2
  const require_type = require("./type.cjs");
4
- exports.ARRAY = require_constants.ARRAY;
5
- exports.CUSTOM = require_constants.CUSTOM;
6
- exports.LITTERALS = require_constants.LITTERALS;
7
- exports.OPTIONAL = require_constants.OPTIONAL;
8
- exports.PARTIAL = require_constants.PARTIAL;
9
- exports.PRIMITIVES = require_constants.PRIMITIVES;
10
- exports.PRIMITIVE_OBJECTS = require_constants.PRIMITIVE_OBJECTS;
11
- exports.SOA = require_constants.SOA;
12
- exports.SORA = require_constants.SORA;
13
- exports.STANDARD_KEY = require_constants.STANDARD_KEY;
14
- exports.UNION = require_constants.UNION;
15
3
  exports.pretype = require_type.pretype;
16
4
  exports.type = require_type.type;
17
- exports.vendor = require_constants.vendor;
package/lib/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- export * from './constants';
2
1
  export * from './type';
3
2
  export * from './types';
package/lib/index.js CHANGED
@@ -1,3 +1,2 @@
1
- import { ARRAY, CUSTOM, LITTERALS, OPTIONAL, PARTIAL, PRIMITIVES, PRIMITIVE_OBJECTS, SOA, SORA, STANDARD_KEY, UNION, vendor } from "./constants.js";
2
1
  import { pretype, type } from "./type.js";
3
- export { ARRAY, CUSTOM, LITTERALS, OPTIONAL, PARTIAL, PRIMITIVES, PRIMITIVE_OBJECTS, SOA, SORA, STANDARD_KEY, UNION, pretype, type, vendor };
2
+ export { pretype, type };
package/lib/type.cjs CHANGED
@@ -51,7 +51,7 @@ const type = (option) => {
51
51
  else out = _transform(option);
52
52
  return require_standard.standardize(out);
53
53
  };
54
- const pretype = () => type;
54
+ const pretype = (_) => type;
55
55
  //#endregion
56
56
  exports.pretype = pretype;
57
57
  exports.type = type;
package/lib/type.d.ts CHANGED
@@ -22,7 +22,10 @@ type Helpers = {
22
22
  sora: typeof sora;
23
23
  };
24
24
  export type Transform_F = <T extends ObjectT = ObjectT>(option?: ((helpers: Helpers) => T) | T) => inferSh<T>;
25
- export type PreTransform = <U extends ObjectT>() => <T extends U = U>(option?: ((helpers: Helpers) => T) | T) => inferSh<T>;
25
+ export type PreTransform = <U extends ObjectT>(_?: inferSh<U>) => {
26
+ <T extends U = U>(option?: ((helpers: Helpers) => T) | T): inferSh<T>;
27
+ type: <T extends U = U>(option?: ((helpers: Helpers) => T) | T) => inferSh<T>;
28
+ };
26
29
  export declare const type: Transform_F;
27
30
  export declare const pretype: PreTransform;
28
31
  export {};
package/lib/type.js CHANGED
@@ -50,6 +50,6 @@ const type = (option) => {
50
50
  else out = _transform(option);
51
51
  return standardize(out);
52
52
  };
53
- const pretype = () => type;
53
+ const pretype = (_) => type;
54
54
  //#endregion
55
55
  export { pretype, type };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bemedev/typings",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Typings by variables",
5
5
  "author": {
6
6
  "email": "bri_lvi@icloud.com",
@@ -27,6 +27,11 @@
27
27
  "require": "./lib/helpers/index.cjs",
28
28
  "types": "./lib/helpers/index.d.ts"
29
29
  },
30
+ "./constants": {
31
+ "import": "./lib/constants.js",
32
+ "require": "./lib/constants.cjs",
33
+ "types": "./lib/constants.d.ts"
34
+ },
30
35
  "./package.json": "./package.json",
31
36
  "./tsconfig.json": "./tsconfig.json",
32
37
  "./types": {