( shape: T )
| 68 | * ``` |
| 69 | */ |
| 70 | export function outputs<T extends Record<string, z.ZodTypeAny>>( |
| 71 | shape: T |
| 72 | ): OutputsSchema<T> { |
| 73 | return z.object(shape) as unknown as OutputsSchema<T>; |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Create a branded parameters schema from a record of parameter schemas. |
no outgoing calls