@chainfuse/types 3.0.6 → 3.0.7

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.
@@ -1,6 +1,9 @@
1
- import type { util, infer as zInfer, ZodMiniJSONSchema, ZodMiniObject, ZodMiniOptional } from 'zod/mini';
1
+ import type { output, infer as zInfer, ZodMiniJSONSchema, ZodMiniObject, ZodMiniOptional } from 'zod/mini';
2
2
  import * as z from 'zod/mini';
3
- export type ZodPick<T extends ZodMiniObject> = util.Mask<keyof T['shape']>;
3
+ export type ZodPick<O extends ZodMiniObject> = Partial<Record<keyof output<O>, boolean>>;
4
+ export type ZodPickedKeys<P extends ZodPick<O>, O extends ZodMiniObject> = Extract<{
5
+ [K in keyof P]: P[K] extends true ? K : never;
6
+ }[keyof P], keyof output<O>>;
4
7
  export type ZodPartial<T extends ZodMiniObject> = ZodMiniObject<{
5
8
  [k in keyof T['shape']]: ZodMiniOptional<T['shape'][k]>;
6
9
  }, T['_zod']['config']>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/types",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
@@ -101,5 +101,5 @@
101
101
  "@cloudflare/workers-types": "^4.20250910.0",
102
102
  "@types/validator": "^13.15.3"
103
103
  },
104
- "gitHead": "eec909dcd19b90bf4a87bf4e33d5c2be1326c83c"
104
+ "gitHead": "eed5adc4e9741ed850e44da694069c0a031b2d05"
105
105
  }