uni-types 1.1.0 → 1.2.0

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/README.md CHANGED
@@ -212,6 +212,51 @@ type Result = If<true, 'success', 'error'> // 'success'
212
212
  | `DeepNonNullable<T>` | Remove null/undefined from all properties |
213
213
  | `Exact<T, Shape>` | Ensure exact shape match |
214
214
 
215
+ ### Schema Validation *(v1.2.0)*
216
+
217
+ | Type | Description |
218
+ |------|-------------|
219
+ | `RuntimeGuard<T>` | Define type guard function for runtime checking |
220
+ | `GuardedType<G>` | Extract type from type guard function |
221
+ | `HasRuntimeCheck<T>` | Check if type has runtime check available |
222
+ | `ZodOutput<T>` | Extract output type from Zod schema |
223
+ | `ZodInput<T>` | Extract input type from Zod schema |
224
+ | `ZodShape<T>` | Extract shape from ZodObject schema |
225
+ | `ZodRequiredKeys<T>` | Get required keys from Zod schema |
226
+ | `ZodOptionalKeys<T>` | Get optional keys from Zod schema |
227
+ | `YupOutput<T>` | Extract output type from Yup schema |
228
+ | `YupInput<T>` | Extract input type from Yup schema |
229
+
230
+ ### Ecosystem Integration *(v1.2.0)*
231
+
232
+ | Type | Description |
233
+ |------|-------------|
234
+ | `ComponentProps<T>` | Extract props from React component |
235
+ | `PropsWithChildren<P>` | Add children to props type |
236
+ | `RequiredProps<P>` | Get required prop keys |
237
+ | `OptionalProps<P>` | Get optional prop keys |
238
+ | `VuePropType<T>` | Vue prop type definition |
239
+ | `VueEmitType<T>` | Vue emit function type |
240
+ | `PrismaCreateInput<T>` | Create input type for Prisma models |
241
+ | `PrismaUpdateInput<T>` | Update input type for Prisma models |
242
+ | `PrismaWhereInput<T>` | Where input type for Prisma queries |
243
+ | `TRPCProcedureInput<T>` | Extract input from tRPC procedure |
244
+ | `TRPCProcedureOutput<T>` | Extract output from tRPC procedure |
245
+
246
+ ### Performance Optimization *(v1.2.0)*
247
+
248
+ | Type | Description |
249
+ |------|-------------|
250
+ | `Simplify<T>` | Flatten intersection types |
251
+ | `DeepSimplify<T>` | Recursively simplify nested types |
252
+ | `Compact<T>` | Remove never and undefined properties |
253
+ | `StripNever<T>` | Remove never properties |
254
+ | `StripUndefined<T>` | Remove undefined properties |
255
+ | `MergeAll<T>` | Merge multiple object types |
256
+ | `Lazy<T>` | Defer type evaluation |
257
+ | `Cached<T>` | Cache type computation |
258
+ | `Memoized<T>` | Memoize type computation |
259
+
215
260
  ## Examples
216
261
 
217
262
  ```typescript