@xylabs/typeof 4.0.2 → 4.0.4
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/dist/neutral/TypeOfTypes.d.ts +2 -0
- package/dist/neutral/TypeOfTypes.d.ts.map +1 -0
- package/dist/neutral/ifDefined.d.ts +2 -0
- package/dist/neutral/ifDefined.d.ts.map +1 -0
- package/dist/neutral/ifTypeOf.d.ts +3 -0
- package/dist/neutral/ifTypeOf.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +6 -11
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/neutral/typeOf.d.ts +3 -0
- package/dist/neutral/typeOf.d.ts.map +1 -0
- package/dist/neutral/validateType.d.ts +3 -0
- package/dist/neutral/validateType.d.ts.map +1 -0
- package/package.json +31 -31
- package/xy.config.ts +1 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypeOfTypes.d.ts","sourceRoot":"","sources":["../../src/TypeOfTypes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ifDefined.d.ts","sourceRoot":"","sources":["../../src/ifDefined.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,kBAW9D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ifTypeOf.d.ts","sourceRoot":"","sources":["../../src/ifTypeOf.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAE,CAAC,YAAY,WAAW,SAAS,OAAO,YAAY,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,kBAM9H,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare const typeOf: <T>(item: T) => TypeOfTypes;
|
|
8
|
-
|
|
9
|
-
declare const validateType: <T>(typeName: TypeOfTypes, value: T, optional?: boolean) => [T | undefined, Error[]];
|
|
10
|
-
|
|
11
|
-
export { type TypeOfTypes, ifDefined, ifTypeOf, typeOf, validateType };
|
|
1
|
+
export * from './ifDefined.ts';
|
|
2
|
+
export * from './ifTypeOf.ts';
|
|
3
|
+
export * from './typeOf.ts';
|
|
4
|
+
export * from './TypeOfTypes.ts';
|
|
5
|
+
export * from './validateType.ts';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeOf.d.ts","sourceRoot":"","sources":["../../src/typeOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,eAAO,MAAM,MAAM,GAAI,CAAC,QAAQ,CAAC,KAAG,WAEnC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateType.d.ts","sourceRoot":"","sources":["../../src/validateType.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,eAAO,MAAM,YAAY,GAAI,CAAC,YAAY,WAAW,SAAS,CAAC,yBAAqB,CAAC,CAAC,GAAG,SAAS,EAAE,KAAK,EAAE,CAY1G,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/typeof",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
3
|
+
"version": "4.0.4",
|
|
4
|
+
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"typeof",
|
|
7
|
+
"xylabs",
|
|
8
|
+
"utility",
|
|
9
|
+
"typescript",
|
|
10
|
+
"esm"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://xylabs.com",
|
|
8
13
|
"bugs": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
14
|
+
"url": "git+https://github.com/xylabs/sdk-js/issues",
|
|
15
|
+
"email": "support@xylabs.com"
|
|
11
16
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
"@xylabs/tsconfig": "^4.0.0-rc.15",
|
|
16
|
-
"typescript": "^5.5.4"
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/xylabs/sdk-js.git"
|
|
17
20
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
21
|
+
"license": "LGPL-3.0-only",
|
|
22
|
+
"author": {
|
|
23
|
+
"name": "XY Labs Development Team",
|
|
24
|
+
"email": "support@xylabs.com",
|
|
25
|
+
"url": "https://xylabs.com"
|
|
20
26
|
},
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"type": "module",
|
|
21
29
|
"exports": {
|
|
22
30
|
".": {
|
|
23
31
|
"types": "./dist/neutral/index.d.ts",
|
|
@@ -27,23 +35,15 @@
|
|
|
27
35
|
},
|
|
28
36
|
"module": "dist/neutral/index.mjs",
|
|
29
37
|
"types": "dist/neutral/index.d.ts",
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.7",
|
|
40
|
+
"@xylabs/tsconfig": "^4.0.7",
|
|
41
|
+
"typescript": "^5.5.4"
|
|
34
42
|
},
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"url": "git+https://github.com/xylabs/sdk-js.git"
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=18"
|
|
38
45
|
},
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
"utility",
|
|
43
|
-
"typescript",
|
|
44
|
-
"esm"
|
|
45
|
-
],
|
|
46
|
-
"sideEffects": false,
|
|
47
|
-
"version": "4.0.2",
|
|
48
|
-
"type": "module"
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
}
|
|
49
49
|
}
|