@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 +0 -13
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -2
- package/lib/type.cjs +1 -1
- package/lib/type.d.ts +4 -1
- package/lib/type.js +1 -1
- package/package.json +6 -1
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
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 {
|
|
2
|
+
export { pretype, type };
|
package/lib/type.cjs
CHANGED
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>(
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bemedev/typings",
|
|
3
|
-
"version": "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": {
|