update
This commit is contained in:
8
packages/runtime/src/utils/utils.schema.ts
Normal file
8
packages/runtime/src/utils/utils.schema.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { z, type ZodType } from 'zod';
|
||||
|
||||
const createListResultSchema = <T extends ZodType>(schema: T) =>
|
||||
z.object({
|
||||
items: z.array(schema),
|
||||
});
|
||||
|
||||
export { createListResultSchema };
|
||||
Reference in New Issue
Block a user