2
0
Files
bot/packages/models/features/utils.ts
2023-01-25 14:59:53 +01:00

10 lines
178 B
TypeScript

import { z } from 'zod'
export type IdMap<T> = { [id: string]: T }
export const schemaForType =
<T>() =>
<S extends z.ZodType<T, any, any>>(arg: S) => {
return arg
}