@xylabs/object 5.0.43 → 5.0.44

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,30 +7,30 @@ export type JsonObject = z.infer<typeof JsonObjectZod>;
7
7
  export type JsonArray = z.infer<typeof JsonArrayZod>;
8
8
  export declare const isJsonValue: <T>(value: T) => value is T;
9
9
  export declare const asJsonValue: {
10
- (value: unknown): unknown;
11
- (value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): unknown;
10
+ <T>(value: unknown): T | undefined;
11
+ <T>(value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): T;
12
12
  };
13
13
  export declare const toJsonValue: {
14
- (value: unknown): unknown;
15
- (value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): unknown;
14
+ <T_1>(value: unknown): T_1 | undefined;
15
+ <T_1>(value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): T_1;
16
16
  };
17
17
  export declare const isJsonArray: <T>(value: T) => value is T & unknown[];
18
18
  export declare const asJsonArray: {
19
- (value: unknown): unknown[] | undefined;
20
- (value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): unknown[];
19
+ <T>(value: unknown): (T & unknown[]) | undefined;
20
+ <T>(value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): T & unknown[];
21
21
  };
22
22
  export declare const toJsonArray: {
23
- (value: unknown): unknown[] | undefined;
24
- (value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): unknown[];
23
+ <T_1>(value: unknown): (T_1 & unknown[]) | undefined;
24
+ <T_1>(value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): T_1 & unknown[];
25
25
  };
26
26
  export declare const isJsonObject: <T>(value: T) => value is T & Record<string, unknown>;
27
27
  export declare const asJsonObject: {
28
- (value: unknown): Record<string, unknown> | undefined;
29
- (value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): Record<string, unknown>;
28
+ <T>(value: unknown): (T & Record<string, unknown>) | undefined;
29
+ <T>(value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): T & Record<string, unknown>;
30
30
  };
31
31
  export declare const toJsonObject: {
32
- (value: unknown): Record<string, unknown> | undefined;
33
- (value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): Record<string, unknown>;
32
+ <T_1>(value: unknown): (T_1 & Record<string, unknown>) | undefined;
33
+ <T_1>(value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): T_1 & Record<string, unknown>;
34
34
  };
35
35
  export {};
36
36
  //# sourceMappingURL=JsonObject.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/object",
3
- "version": "5.0.43",
3
+ "version": "5.0.44",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -43,11 +43,11 @@
43
43
  "!**/*.test.*"
44
44
  ],
45
45
  "dependencies": {
46
- "@xylabs/assert": "~5.0.43",
47
- "@xylabs/object-model": "~5.0.43",
48
- "@xylabs/promise": "~5.0.43",
49
- "@xylabs/typeof": "~5.0.43",
50
- "@xylabs/zod": "~5.0.43",
46
+ "@xylabs/assert": "~5.0.44",
47
+ "@xylabs/object-model": "~5.0.44",
48
+ "@xylabs/promise": "~5.0.44",
49
+ "@xylabs/typeof": "~5.0.44",
50
+ "@xylabs/zod": "~5.0.44",
51
51
  "zod": "~4.1.12"
52
52
  },
53
53
  "devDependencies": {