⚡ (engine) Improve engine overall robustness
This commit is contained in:
9
packages/models/features/utils.ts
Normal file
9
packages/models/features/utils.ts
Normal file
@ -0,0 +1,9 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user