@xylabs/typeof 4.0.3 → 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.
@@ -0,0 +1,2 @@
1
+ export type TypeOfTypes = 'string' | 'number' | 'object' | 'array' | 'buffer' | 'null' | 'undefined' | 'bigint' | 'boolean' | 'function' | 'symbol';
2
+ //# sourceMappingURL=TypeOfTypes.d.ts.map
@@ -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,2 @@
1
+ export declare const ifDefined: <T>(value: T, func: (value: T) => void) => T | undefined;
2
+ //# sourceMappingURL=ifDefined.d.ts.map
@@ -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,3 @@
1
+ import type { TypeOfTypes } from './TypeOfTypes.ts';
2
+ export declare const ifTypeOf: <T, R>(typeName: TypeOfTypes, value: unknown, trueFunc: (value: T) => R, isFunc?: (value: T) => boolean) => R | undefined;
3
+ //# sourceMappingURL=ifTypeOf.d.ts.map
@@ -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"}
@@ -1,11 +1,6 @@
1
- declare const ifDefined: <T>(value: T, func: (value: T) => void) => T | undefined;
2
-
3
- type TypeOfTypes = 'string' | 'number' | 'object' | 'array' | 'buffer' | 'null' | 'undefined' | 'bigint' | 'boolean' | 'function' | 'symbol';
4
-
5
- declare const ifTypeOf: <T, R>(typeName: TypeOfTypes, value: unknown, trueFunc: (value: T) => R, isFunc?: (value: T) => boolean) => R | undefined;
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,3 @@
1
+ import type { TypeOfTypes } from './TypeOfTypes.ts';
2
+ export declare const typeOf: <T>(item: T) => TypeOfTypes;
3
+ //# sourceMappingURL=typeOf.d.ts.map
@@ -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,3 @@
1
+ import type { TypeOfTypes } from './TypeOfTypes.ts';
2
+ export declare const validateType: <T>(typeName: TypeOfTypes, value: T, optional?: boolean) => [T | undefined, Error[]];
3
+ //# sourceMappingURL=validateType.d.ts.map
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/typeof",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "typeof",
@@ -36,8 +36,8 @@
36
36
  "module": "dist/neutral/index.mjs",
37
37
  "types": "dist/neutral/index.d.ts",
38
38
  "devDependencies": {
39
- "@xylabs/ts-scripts-yarn3": "^4.0.0",
40
- "@xylabs/tsconfig": "^4.0.0",
39
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
40
+ "@xylabs/tsconfig": "^4.0.7",
41
41
  "typescript": "^5.5.4"
42
42
  },
43
43
  "engines": {